Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake task isn't being make available #4

Open
anthonygreen opened this issue Sep 13, 2012 · 8 comments
Open

Rake task isn't being make available #4

anthonygreen opened this issue Sep 13, 2012 · 8 comments

Comments

@anthonygreen
Copy link

I'm using Jasmine to test a purely JavaScript application.

Attempting

bundle exec rake jasmine:phantom:ci

generates the error

Don't know how to build task 'jasmine:phantom:ci'

The Rake task needs to be transferred to the Rakefile

@qxjit
Copy link
Member

qxjit commented Sep 18, 2012

What version of rails (or other framework) are you using?

@anthonygreen
Copy link
Author

None

@qxjit
Copy link
Member

qxjit commented Oct 5, 2012

Have you tried adding

require "jasmine-phantom/tasks.rake"

in your Rakefile?

@madewithsalt
Copy link

I am having the same issue. I tried to add the require above but that did not solve the issue.
I'm using Rails 3.2.8.

Here is the full trace:

rake aborted!
Don't know how to build task 'jasmine:phantom'
/Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task_manager.rb:49:in []' /Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:115:ininvoke_task'
/Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:in block (2 levels) in top_level' /Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:ineach'
/Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:in block in top_level' /Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:instandard_exception_handling'
/Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:88:in top_level' /Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:66:inblock in run'
/Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:in standard_exception_handling' /Users/kristi.bonner/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:63:inrun'
/Users/kristi.bonner/.rbenv/versions/1.9.3-p194/bin/rake:32:in `

'

@qxjit
Copy link
Member

qxjit commented Nov 9, 2012

The task name provided by the gem is jasmine:phantom:ci. There isn't a jasmine:phantom task.

Sorry for the lag in replying!

@schinery
Copy link

Just for everyone's benefit, I'm using the Padrino framework and got 'jasmine-phantom' rake tasks to work by adding the following to my test.rake file.

require 'jasmine-phantom'
load 'jasmine-phantom/tasks.rake'

Hope this helps.

@kenoir
Copy link

kenoir commented Apr 8, 2013

Just ran into the same problem. It would be handy if this was in the readme :)

@SergXIIIth
Copy link

Have same problem on Sinatra.
Solution from @sleepingstu work for me, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants