Re: [rspec-users] undefined method `mock' for #

2011-01-19 Thread Wilker
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:

[rspec-users] undefined method `mock' for #

2011-01-19 Thread Dan F.
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://

[rspec-users] undefined method `mock' for #

2010-10-03 Thread Jan Limpens
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:

Re: [rspec-users] undefined method 'mock'

2009-08-24 Thread Jesterman81
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

Re: [rspec-users] undefined method 'mock'

2009-08-23 Thread David Chelimsky
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

Re: [rspec-users] undefined method 'mock'

2009-08-23 Thread Ben Mabey
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

[rspec-users] undefined method 'mock'

2009-08-23 Thread Jesterman81
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 __