Problem with running rspec

When I’m trying to run rspecs for my project I get following exception:

jruby-1.6.0$ jruby --1.9 -S bundle exec rspec spec/models/user_spec.rb
No DRb server is running. Running in local process instead …
/home/lucassus/Projects/my_app/vendor/gems/jruby/1.8/gems/smart_asset-0.5.4/lib/smart_asset/version.rb:2
warning: toplevel constant VERSION referenced by SmartAsset::VERSION
NoMethodError: undefined method `require_relative’ for main:Object
(root) at
/home/lucassus/Projects/my_app/config/application.rb:52
require at org/jruby/RubyKernel.java:1037
(root) at
/home/lucassus/Projects/my_app/config/application.rb:2
require at org/jruby/RubyKernel.java:1037
(root) at
/home/lucassus/Projects/my_app/config/environment.rb:22
prefork at
/home/lucassus/Projects/my_app/vendor/gems/jruby/1.8/gems/spork-0.8.4/lib/spork.rb:23
(root) at
/home/lucassus/Projects/my_app/spec/spec_helper.rb:3
require at org/jruby/RubyKernel.java:1037
(root) at
/home/lucassus/Projects/my_app/spec/spec_helper.rb:1
load at org/jruby/RubyKernel.java:1062
load_spec_files at
/home/lucassus/Projects/my_app/spec/models/user_spec.rb:386
collect at org/jruby/RubyArray.java:2306
load_spec_files at
/home/lucassus/Projects/my_app/vendor/gems/jruby/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386
run at
/home/lucassus/Projects/my_app/vendor/gems/jruby/1.8/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18
run_in_process at
/home/lucassus/Projects/my_app/vendor/gems/jruby/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55
run at
/home/lucassus/Projects/my_app/vendor/gems/jruby/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:44
autorun at
/home/lucassus/Projects/my_app/vendor/gems/jruby/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10
call at org/jruby/RubyProc.java:268
call at org/jruby/RubyProc.java:232

I have bundled gems installed with following command: jruby --1.9 -S
bundle
install
What causes this problem and how I can fix it?


View this message in context:
http://old.nabble.com/Problem-with-running-rspec-tp31238099p31238099.html
Sent from the JRuby - User mailing list archive at Nabble.com.

maybe it is not passing the --1.9 argument along to a child process
“right” ?
-r

Do you have an idea how to check it?

Alexey M. wrote:

http://xircles.codehaus.org/manage_email


View this message in context:
http://old.nabble.com/Problem-with-running-rspec-tp31238099p31277087.html
Sent from the JRuby - User mailing list archive at Nabble.com.