Hello,
I've written the following simple rspec test that I'm trying to run
(rspec 1.2.9) standalone (outside Rails) from the command line and
getting the following error. Any idea for how to fix this? Thanks.
$> spec foo_rspec.rb
/Users/athem/.gem/ruby/1.8/gems/rspec-1.2.9/lib/spec/runner/opt
On Sat, Dec 12, 2009 at 11:28 AM, athem wrote:
> Hello,
>
> I've written the following simple rspec test that I'm trying to run
> (rspec 1.2.9) standalone (outside Rails) from the command line and
> getting the following error. Any idea for how to fix this? Thanks.
>
> $> spec foo_rspec.rb
>
>
Tom Stuart wrote:
> On 10 Nov 2009, at 14:08, Saverio Miroddi wrote:
>> Is there a clean/simple way of stubbing the activerecord find() for a
>> single instance?
>
> MyModel.stub(:find).with(42).and_return(myModel)
Didn't work as expected - I'll do a bit of research and post again.
--
Posted via