langalex / culerity

Culerity integrates Cucumber and Celerity in order to test your application's full stack including Javascript. Your Rails app doesn't have to run in JRuby.
http://groups.google.com/group/culerity-dev
MIT License
259 stars 33 forks source link

Culerity not working with regular JRuby #28

Open gurdotan opened 14 years ago

gurdotan commented 14 years ago

I'm trying to get Culerity working with a regular installation of JRuby (installed with apt-get on Ubuntu).

I followed all steps in the rdoc, fired up rake culerity:rails:start and I still get the following error:

/usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require': no such file to load -- culerity/celerity_server (LoadError) from /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire' from /var/lib/gems/1.8/gems/culerity-0.2.12/lib/start_celerity.rb:2

AAHHHH!!!!!! Any ideas? Thanks...

langalex commented 14 years ago

looks like it can't find culerity itself. are you using bundler or something? rvm?

phoet commented 14 years ago

i am trying to get cucumber tests working with culerity and rvm and i saw that error too:

/Users/nofail/.rvm/rubies/jruby-1.5.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require': no such file to load -- culerity/celerity_server (LoadError) from /Users/nofail/.rvm/rubies/jruby-1.5.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire' from /Users/nofail/.rvm/gems/ruby-1.8.7-p302@tolingo-site/gems/culerity-0.2.12/lib/start_celerity.rb:2

seems not to happen with culerity culerity-0.2.10, though i have other issues with that...

ghost commented 14 years ago

I am having the same problem. 0.2.10 works, but when I switch to 0.2.12 I encounter the same error. I'm using bundler, but that's not a factor, since 0.2.10 works fine with bundler.

tinomen commented 13 years ago

I had this problem with culerity and bundler. The new way to start the celerity server relies on rubygems which aren't shared by MRI and jruby and that's why you see this message. Also, bundler sets the RUBYOPT environment var which gets shared with the IO#popen call so jruby gets confused about it's environment. There is a pull request and patch in issue #32 (https://github.com/langalex/culerity/issues#issue/32) that solves this and other issues.

langalex commented 13 years ago

just released 0.2.15, which includes the mentioned fix. does that fix your issues?

tinomen commented 13 years ago

This is working for me.