Using the rails3-demo which doesn't have any RSpec in it whatsoever
Probably an issue with the generator code, but we should probably be more intelligent about stock Rails projects, which use Test::Unit by default
tyler@kiwi 08:56:04 ~/source/github/gems/sauce_ruby/examples/rails3-demo [bug/64-test-rails2-and-rails3 *] ‹ruby-1.9.2@saucelabs-rails3-demo›
-> % ./script/rails g sauce:install
create lib/tasks/sauce.rake
exist spec/selenium
append spec/spec_helper.rb
/home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/actions/inject_into_file.rb:99:in `binread': No such file or directory - /home/tyler/source/github/gems/sauce_ruby/examples/rails3-demo/spec/spec_helper.rb (Errno::ENOENT)
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/actions/inject_into_file.rb:99:in `replace!'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/actions/inject_into_file.rb:60:in `invoke!'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/actions.rb:95:in `action'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/actions/inject_into_file.rb:31:in `insert_into_file'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:175:in `append_to_file'
from /home/tyler/source/github/gems/sauce_ruby/lib/generators/sauce/install/install_generator.rb:24:in `setup_spec'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/railties-3.2.0/lib/rails/generators.rb:170:in `invoke'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/railties-3.2.0/lib/rails/commands/generate.rb:12:in `<top (required)>'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `block in require'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require'
from /home/tyler/.rvm/gems/ruby-1.9.2-p290@saucelabs-rails3-demo/gems/railties-3.2.0/lib/rails/commands.rb:29:in `<top (required)>'
from ./script/rails:6:in `require'
from ./script/rails:6:in `<main>'
Using the
rails3-demo
which doesn't have any RSpec in it whatsoeverProbably an issue with the generator code, but we should probably be more intelligent about stock Rails projects, which use
Test::Unit
by default