Re: [rspec-users] How to do controller.stub(:some_method) at request test when using rspec2

2011-03-08 Thread Jiang Guimin
Rob Aldred wrote in post #985198: > On 3 Mar 2011, at 07:36, Jiang Guimin wrote: > >> end >> controller.should_receive(:save_u_and_node).with(table, >> >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > Are you wanting to stub

Re: [rspec-users] How to do controller.stub(:some_method) at request test when using rspec2

2011-03-08 Thread Jiang Guimin
David Chelimsky wrote in post #985199: > On Mar 3, 2011, at 1:36 AM, Jiang Guimin wrote: >> end >> controller.should_receive(:save_u_and_node).with(table, >> >> When I run the test, unfortunately rspec told me that "controller" is >> nil, I got a fail test. >> So, I want to konw how to get

[rspec-users] problem running rspec test with Webrat

2011-03-08 Thread Amit Kulkarni
Hi, I am trying to run rspec testcase using webrat but it is showing me an error as "undefined method `last_response' for #" Following are my configurations: Gemfile: roup :development, :test do gem 'sqlite3-ruby', :require => 'sqlite3' gem "rspec", "=2.4.0" gem "rspec-rails", "2.4.0" #

Re: [rspec-users] problem running rspec test with Webrat

2011-03-08 Thread David Chelimsky
On Mar 8, 2011, at 8:10 AM, Amit Kulkarni wrote: > Hi, > I am trying to run rspec testcase using webrat but it is showing me an > error as "undefined method `last_response' for #" > > Following are my configurations: > Gemfile: > > roup :development, :test do > gem 'sqlite3-ruby', :require => 's

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

2011-03-08 Thread Jonathan Cran
I'm running into an issue using ONLY rspec version 1.3.3 (no rails / rspec-rails with this project) where i'm hitting the following error: My code looks like this: describe Win32Meterpreter before :all helper_method end def helper_method ## If a session came

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

2011-03-08 Thread Jonathan Cran
On 03/08/2011 07:08 PM, Jonathan Cran wrote: > I'm running into an issue using ONLY rspec version 1.3.3 (no rails / > rspec-rails with this project) where i'm hitting the following error: > My mistake, that's rspec version 1.3.1. jcran -- Jonathan Cran jc...@0x0e.org 515.890.0070