[rspec-users] undefined method `mock' for #<RSpec::Core::ExampleGroup::Nested.
wilkerlucio at gmail.com
Wed Jan 19 16:12:01 EST 2011
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 ;)
+55 81 82556600
On Wed, Jan 19, 2011 at 5:54 PM, Dan F. <lists at ruby-forum.com> wrote:
> Please see:
> You can't create mocks in before(:all), but it will work in
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users