tomas-stefano / infinity_test

Continuous testing and a alternative to Autotest and Guard
http://github.com/tomas-stefano/infinity_test
MIT License
216 stars 12 forks source link

command not found: rvm #24

Closed heikki closed 13 years ago

heikki commented 13 years ago

I run into this issue after fresh os install (rvm etc. should be newest, infinity_test is 1.0.3). The command it tells its running works without errors when running it manually.

∴ infinity_test --rspec --skip-bundler --verbose

* { :ruby => ruby-1.8.7-p334@default }
rvm ruby-1.8.7-p334@default ruby  /Users/heikkiylonen/.rvm/gems/ruby-1.8.7-p334@default/bin/rspec 
/Users/heikkiylonen/.rvm/gems/ruby-1.8.7-p334@default/gems/infinity_test-1.0.3/lib/infinity_test/application.rb:315: command not found:  rvm ruby-1.8.7-p334@default ruby  /Users/heikkiylonen/.rvm/gems/ruby-1.8.7-p334@default/bin/rspec
tomas-stefano commented 13 years ago

Hi! :) Hummm ... this behavior is so strange. I tried to reproduce here and simple works great.

 (ruby-1.9.2@morpheus) ~/Codigos/Ruby/gems/example ⤷ infinity_test --rspec --verbose

Finished in 0.00005 seconds 0 examples, 0 failures

Can you make a favor to me? :D

In the branch master I refactored the entire InfinityTest to become more simple and more readable, and separate many classes responsabilities. Try to install from git and if the error occurs tell me here please.

heikki commented 13 years ago

How do you run it when it is installed from github? I tried both 'infinity_test' and 'bundle exec infinity_test'. Those didn't work.

tomas-stefano commented 13 years ago

You installed from git and doesn't work? Are you added this to gemfile?

gem 'infinity_test', git: 'git://github.com/tomas-stefano/infinity_test.git'

And you run bundle isntall and after bundle exec infinity_test?

If doesn't work it all I'll try to make a investigation around master branch and see what's is going on.

heikki commented 13 years ago

Yes, I have done it like that. Blank Rails 3.0.8 app with these gems added to Gemfile:

gem 'rspec-rails'
gem 'infinity_test', :git => "git://github.com/tomas-stefano/infinity_test.git"

Maybe there's something funny with my setup. I remember having same problems earlier when installing from git. Right now it shows the following:

∴ bundle exec infinity_test

* { :ruby => ruby-1.8.7-p334@default }
bundler: command not found: rvm
Install missing gem binaries with `bundle install`
tomas-stefano commented 13 years ago

Ok I will try to reproduce this error. When I fix it or find the cause I'll talk here.

Please, if you had the file, can you paste here the .infinity_test file of your project or global?

heikki commented 13 years ago

I don't have .infinity_test file at the moment.

tomas-stefano commented 13 years ago

I try to reproduce and see the error. rvm: command not found

But when I updated tonight(5 minutes ago) with the following command:

rvm get head

Works really great for now. This is not a bug in the infinity_test. But if the error continue, feel free to open a issue that I'll be help you.

Cheers

heikki commented 13 years ago

Thanks for trying it out. That didn't solve the problem for me. I'll post here if I happen to find out what's the problem. I suspect it has something to do with my setup (homebrew, rvm, separate gemsets).

heikki commented 13 years ago

Running rvm get head solved the problem after all. I must have forgotten to restart the terminal on the first try. Thanks again!

tomas-stefano commented 13 years ago

Nice! I'm glad that I helped you. :D