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. wrote:
> Please see:
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://
Hekko,
what does the following mean?
1) PortfolioItemsController should render index
Failure/Error: @portfolio = mock_model(Portfolio)
undefined method `mock' for
#
#
/Users/jan/.rvm/gems/ruby-1.9.2...@rails3/gems/actionpack-3.0.0/lib/action_dispatch/testing/assertions/routing.rb:
Yeah, I'm an idiot. I was missing the whole 'it "should do something"
do' line.
Thanks for getting back so quick though!
On Aug 23, 11:30 pm, David Chelimsky wrote:
> On Sun, Aug 23, 2009 at 8:57 PM, Jesterman81 wrote:
> > Greetings,
>
> > I am trying to use the mock method in rspec and it retu
On Sun, Aug 23, 2009 at 8:57 PM, Jesterman81 wrote:
> Greetings,
>
> I am trying to use the mock method in rspec and it returns a undefined
> method 'mock' error. I am using this with the rspec book in chapter
> 6.3. Do I have to configure rspec someone. I have gem rspec 1.2.8
> installed and us
Jesterman81 wrote:
Greetings,
I am trying to use the mock method in rspec and it returns a undefined
method 'mock' error. I am using this with the rspec book in chapter
6.3. Do I have to configure rspec someone. I have gem rspec 1.2.8
installed and using ruby 1.8.
any help will be appreciate
Greetings,
I am trying to use the mock method in rspec and it returns a undefined
method 'mock' error. I am using this with the rspec book in chapter
6.3. Do I have to configure rspec someone. I have gem rspec 1.2.8
installed and using ruby 1.8.
any help will be appreciated.
thanks
__