[rspec-users] Error Running Standalone/Command Line rspec: undefined method Pathname

2009-12-12 Thread athem
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

Re: [rspec-users] Error Running Standalone/Command Line rspec: undefined method Pathname

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

Re: [rspec-users] Stub activerecord find given instance?

2009-12-12 Thread Saverio Miroddi
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