[rspec-devel] Setting up rspec-rails for dev probelm

Ben Mabey ben at benmabey.com
Fri Apr 11 02:10:27 EDT 2008


Ben Mabey wrote:
> Hi,
> I'm trying to set up my environment so I can make some changes to 
> rspec-rails.  I have everything setup with rspec-dev and the git 
> submodules and I can run the entire spec suite.
> I can also run rspec's specs separately and the example_rails_app specs 
> separately.  However, when I try to run the specs (via autotest) in 
> rspec-dev/example_rails_app/vendor/plugins/rspec-rails I get:
>
> ############################################################################
> Your RSpec on Rails plugin is incompatible with your installed RSpec.
>
> RSpec          : 20080131122909
> RSpec on Rails : 20080328014754
>
> Make sure your RSpec on Rails plugin is compatible with your RSpec gem.
> See http://rspec.rubyforge.org/documentation/rails/install.html for details.
> ############################################################################
>
>
> I realize that the rpsec version is coming from my gem 1.1.3 installed.  
> Looking at the spec_helper.rb in rpec-rails it looks like it is trying 
> to include the dev version but... it obviously isn't working for me.
>
> What do I need to do get this to work on my box?  Any advice would be 
> appreciated.
>
> Thanks,
>
> Ben
>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>   


So, I worked around this by just symlinking my dev version of rspec into 
the gems dir.  This worked but now all the specs fail with a 
SQLite3::SQLException.

When you work on rspec-rails how do you run the specs just for that?  I 
must have something set up wrong...

The first time I tried to run the specs I was told that 
rspec-dev/example_rails_app/spec/spec_helper didn't exist.  I noticed 
that this file is being excluded in the repo by .gitignore so I made my 
own with the 'generate rspec' command.  Do I need something custom in 
that file to allow me to run the specs in 
rspec-dev/example_rails_app/vendor/plugins/rspec-rails?

Sorry for all my questions, I'm just having a hard time getting these to 
run outside of the pre_commit task.

Thanks in advance,
Ben


More information about the rspec-devel mailing list