Yeah, that is right, because mocks live on a space that is different for each spec (the MockSpace), this is why you can't create it in before :all ;) --- Wilker LĂșcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600
On Wed, Jan 19, 2011 at 5:54 PM, Dan F. <li...@ruby-forum.com> wrote: > Please see: > https://github.com/rspec/rspec-rails/issues/closed#issue/279 > > You can't create mocks in before(:all), but it will work in > before(:each) > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users