Re: [rspec-users] MyModel.stub!l works in 1.1.11 but fails in 1.1.12

2009-02-05 Thread Brad
On Feb 4, 10:22 pm, David Chelimsky wrote: > On Wed, Feb 4, 2009 at 7:42 PM, Brad wrote: > > I have a controller spec that works find with Rails 2.2.2 and Rspec- > > Rails 1.1.11.  The code is: > > > �...@activity=mock_model(Activity, :id => 7) > >  Activity.stub!(:get).with("7").and_return(@ac

Re: [rspec-users] MyModel.stub!l works in 1.1.11 but fails in 1.1.12

2009-02-04 Thread David Chelimsky
On Wed, Feb 4, 2009 at 7:42 PM, Brad wrote: > I have a controller spec that works find with Rails 2.2.2 and Rspec- > Rails 1.1.11. The code is: > > @activity=mock_model(Activity, :id => 7) > Activity.stub!(:get).with("7").and_return(@activity > > When I update to 1.1.12 > > ArgumentError in 'Ac