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
On Sun, Aug 23, 2009 at 8:57 PM, Jesterman81<adam.trepanier at gmail.com> 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 appreciated.Please post the example and the error you''re getting so we can help you figure it out. Cheers, David> > thanks > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
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 appreciated. > >Please post the failing spec and your spec_helper.rb. Without those it is hard for us to diagnose the problem. -Ben
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 <dchelim... at gmail.com> wrote:> On Sun, Aug 23, 2009 at 8:57 PM, Jesterman81<adam.trepan... at gmail.com> 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 appreciated. > > Please post the example and the error you''re getting so we can help > you figure it out. > > Cheers, > David > > > > > thanks > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users