On Jun 28, 2010, at 6:10 AM, Julien wrote:

> On Jun 27, 5:39 am, David Chelimsky <dchelim...@gmail.com> wrote:
>> On Jun 26, 2010, at 10:38 PM, geetarista wrote:
>> 
>>>> What I believe to be the fix is now up in github. Geetarista, would you do 
>>>> me a favor and update your gemfile to point to the git repos:
>> 
>>>> gem "rspec-rails", :git => "git://github.com/rspec/rspec-rails.git"
>>>> gem "rspec-core", :git => "git://github.com/rspec/rspec-core.git"
>>>> gem "rspec-expectations", :git => 
>>>> "git://github.com/rspec/rspec-expectations.git"
>>>> gem "rspec-mocks", :git => "git://github.com/rspec/rspec-mocks.git"
>>>> gem "rspec", :git => "git://github.com/rspec/rspec.git"
>> 
>>>> Need to get all of them from git for this to work (just temporary until I 
>>>> get a release out).
>> 
>>>> Then 'bundle install' and 'rake spec' and let me know if all is well.
>> 
>>>> Thanks,
>>>> David
>>> That fixed it.  Thanks so much, David!
>> 
>> Great. Thanks. Release coming in the next day or so.

> Thank you all for this discussion and the fix
> 
> I ran into the same issue this morning, but with "Factory" being the
> class that was undefined (using Factory Girl)
> 
> The fix explained in this discussion worked for me.
> As a reminder for others :
> 
> 1 - update spec_helper
>  require File.expand_path("../../config/environment", __FILE__)
>  instead of
>  require File.dirname(__FILE__) + "/../config/environment" unless
> defined?(Rails)

This is already updated in 2.0.0.beta.14.1 - you just have to follow the 
installation instructions and re-run 'script/rails generate rspec-install'

> 
> 2 - update gemfile
>  gem 'rspec-rails', "2.0.0.beta.14.1"
> 
> 3 - bundle install or bundle update (depending on your version of
> bundler)


_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to