running rspec with phantomjs

Hi, new to rubymine. Trying it out with an existing project that has rspec request specs using phantomjs. When i run the specs I get the following error.

Running specs...
Command line:
...
/Users/jonathan/.rvm/gems/ruby-1.9.3-p327/bin/rspec: No such file or directory - phantomjs --version

Capybara::Poltergeist::PhantomJSFailed: PhantomJS returned non-zero exit status 127. Make sure phantomjs runs successfully on your system. You can test this by just running the `phantomjs` command which should give you a Javascript REPL.


In a normal terminal console,

$ which phantomjs
/usr/local/bin/phantomjs


I've searched the docs, help and google for how to augment the PATH within rubymine but dont an answer.
TIA
0
Avatar
Permanently deleted user

1.
same issue with spork+ cucumber + capybara + poltergeist

/home/anton/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/anton/.rvm/gems/ruby-1.9.3-p362@r3/bin/spork cucumber
Using Cucumber, Rails
Preloading Rails environment
Loading Spork.prefork block...
Spork is ready and listening on 8990!
Running tests with args ["/home/anton/work/tradein/features", "--expand", "--backtrace", "--verbose", "--color", "-r", "features", "--format", "Teamcity::Cucumber::Formatter", "--strict", "--tags", "~@wip", "--no-profile"]...
/home/anton/.rvm/gems/ruby-1.9.3-p362@r3/bin/spork: No such file or directory - phantomjs --version




Capybara::Poltergeist::PhantomJSFailed: PhantomJS returned non-zero exit status 127. Make sure phantomjs runs successfully on your system. You can test this by just running the `phantomjs` command which should give you a Javascript REPL.




anton@ubuntu:~/work/tradein$ which phantomjs
/home/anton/opt/phantomjs-1.8.1-linux-i686/bin/phantomjs


clean cucumber from console work perfect
anton@ubuntu:~/work/tradein$ cucumber

with
/home/anton/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -EUTF-8  /home/anton/work/tradein/script/cucumber /home/anton/work/tradein/features --expand --drb --backtrace --verbose --color -r features

like in Rubymine cucumber script fails with

Capybara::Poltergeist::PhantomJSFailed: PhantomJS returned non-zero exit status 127. Make sure phantomjs runs successfully on your system. You can test this by just running the `phantomjs` command which should give you a Javascript REPL.

2.
bundle exec /home/anton/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -EUTF-8 /home/anton/work/tradein/script/cucumber /home/anton/work/tradein/features --expand --drb --backtrace --verbose --color -r features
same issue


if i run spork from console
/home/anton/.rvm/rubies/ruby-1.9.3-p362/bin/ruby /home/anton/.rvm/gems/ruby-1.9.3-p362@r3/bin/spork cucumber
or
bundle exec /home/anton/.rvm/rubies/ruby-1.9.3-p362/bin/ruby /home/anton/.rvm/gems/ruby-1.9.3-p362@r3/bin/spork cucumber
cucumber works perfect

but if i start cucumber from RubyMine
i get exception

/home/anton/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -EUTF-8 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/anton/work/tradein/script/cucumber /home/anton/work/tradein/features --expand --drb --backtrace --verbose --color -r features
Testing started at 10:47 AM ...
Using the default profile...
Disabling profiles...
Code:
  * features/support/env.rb
  * features/step_definitions/schedule_steps.rb
  * features/step_definitions/separation_steps.rb

Exception encountered: #<LoadError: cannot load such file -- teamcity/cucumber/formatter
Error creating formatter: Teamcity::Cucumber::Formatter>

seems like problem with TeamcityFormatter which not work with modern rails
0

请先登录再写评论。