[rspec-users] Setting up rspec-rails for hacking

David Chelimsky dchelimsky at gmail.com
Fri Jul 9 23:38:10 EDT 2010

On Jul 9, 2010, at 8:06 AM, David Chelimsky wrote:

> On Jul 9, 2010, at 6:59 AM, garren wrote:
>> On Jul 7, 12:34 pm, David Chelimsky <dchelim... at gmail.com> wrote:
>>> On Jul 7, 2010, at 5:26 AM, Trevor Lalish-Menagh wrote:
>>>>> Did you know about the rspec-dev meta project?
>>>>> http://github.com/rspec/rspec-dev
>>>> That is great. I should have looked for that before setting this up. I just didn't think about it.
>>>>> Perhaps we should update the rspec-* READMEs with a point back to rspec-dev so that people know about it?
>>>> Good call. That would help.
>>> Done:
>>> http://github.com/rspec/rspechttp://github.com/rspec/rspec-corehttp://github.com/rspec/rspec-expectationshttp://github.com/rspec/rspec-mockshttp://github.com/rspec/rspec-rails
>> I've followed the instructions to install the dev environment, when I
>> run rake install I get this for the rspec-rails:
>> cp ./templates/Gemfile ./tmp/example_app/
>> rake rails:template LOCATION='../../templates/generate_stuff.rb'
>> (in /Users/garren/webdev/rspec-dev/repos/rspec-rails/tmp/example_app)
>>   generate  rspec:install
>>   generate  controller wombats index
>>   generate  controller welcome index
>>   generate  integration_test widgets
>>   generate  mailer Notifications signup
>>   generate  model thing name:string
>>   generate  helper things
>>   generate  scaffold widget name:string category:string
>> instock:boolean
>>   generate  observer widget
>>   generate  scaffold gadget
>>        run  rake db:migrate from "."
>>        run  rake db:test:prepare from "."
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.8.3/lib:lib" "/Library/Ruby/
>> Gems/1.8/gems/cucumber-0.8.3/bin/cucumber" --format progress
>> Using the default profile...
>> You have already activated rspec-expectations 2.0.0.beta.13, but your
>> Gemfile requires rspec-expectations 2.0.0.beta.16. Consider using
>> bundle exec. (Gem::LoadError)
>> Any ideas on how to fix this?
> Looks like a change to aruba broke the rspec build :) Looking into it now.

It wasn't aruba. I'm not 100% clear about all this, but I had added Bundler.setup in a couple of places where it wasn't necessary, and it caused trouble. It's now only in the Rakefiles in each repo and all appears to be well.

Please give it a shot again and let me know how it's all working.


More information about the rspec-users mailing list