Re: [rspec-users] undefined method `route_for

2009-11-12 Thread David Chelimsky
On Thu, Nov 12, 2009 at 11:32 PM, Amit Kulkarni wrote: > David Chelimsky wrote: > > On Wed, Nov 11, 2009 at 11:19 PM, Amit Kulkarni > > wrote: > > > >> >> > >> It gets executed but i am not able to see any results as in 2 examples 2 > >> passed something like that as it comes normally. > >> > > >

Re: [rspec-users] undefined method `route_for

2009-11-12 Thread Amit Kulkarni
David Chelimsky wrote: > On Wed, Nov 11, 2009 at 11:19 PM, Amit Kulkarni > wrote: > >> >> >> It gets executed but i am not able to see any results as in 2 examples 2 >> passed something like that as it comes normally. >> > > Then how do you know it gets executed? I dont know,When i run the comm

Re: [rspec-users] ruby file.spec?

2009-11-12 Thread Zach Dennis
On Thu, Nov 12, 2009 at 10:28 PM, Stephen Eley wrote: > On Thu, Nov 12, 2009 at 8:36 PM, Zach Dennis wrote: >> >> You want to use "spec" to run files directly. If you have your heart >> set on running files from "ruby" then you'll need to load >> "spec/autorun" to actually execute the specs. > >

Re: [rspec-users] undefined method `route_for

2009-11-12 Thread David Chelimsky
On Wed, Nov 11, 2009 at 11:19 PM, Amit Kulkarni wrote: > David Chelimsky wrote: > > On Nov 11, 2009, at 5:58 AM, Amit Kulkarni wrote: > > > >> > >>it "should map { :controller => 'home' } RESTfully" do > >> params_from( :get, '/home' ).should == { :controller => 'home', > >> :action => '

Re: [rspec-users] ruby file.spec?

2009-11-12 Thread Stephen Eley
On Thu, Nov 12, 2009 at 7:34 PM, rogerdpack wrote: > perhaps this has been discussed before and you can point me to the > right thread, but is it possible to run specs from the command line > using just ruby? > ruby arguments_spec.rb > > and it "just run" (like test/unit seems to)? What happens w

Re: [rspec-users] ruby file.spec?

2009-11-12 Thread Stephen Eley
On Thu, Nov 12, 2009 at 8:36 PM, Zach Dennis wrote: > > You want to use "spec" to run files directly. If you have your heart > set on running files from "ruby" then you'll need to load > "spec/autorun" to actually execute the specs. After giving the original querent a hard time, it surprises me t

Re: [rspec-users] better documentation?

2009-11-12 Thread Stephen Eley
On Thu, Nov 12, 2009 at 7:14 PM, rogerdpack wrote: > >> I really like what Aslak and the Cucumber community have done by >> making cukes.info more high level and building up more extensive >> documentation on the github wiki, so I'd rather put energy into >> beefing up the github wiki than improve

Re: [rspec-users] better documentation?

2009-11-12 Thread rogerdpack
> I really like what Aslak and the Cucumber community have done by   > making cukes.info more high level and building up more extensive   > documentation on the github wiki, so I'd rather put energy into   > beefing up the github wiki than improve rspec.info. What do you think? Using a wiki sound

Re: [rspec-users] ruby file.spec?

2009-11-12 Thread Zach Dennis
On Thu, Nov 12, 2009 at 7:34 PM, rogerdpack wrote: > perhaps this has been discussed before and you can point me to the > right thread, but is it possible to run specs from the command line > using just ruby? > ruby arguments_spec.rb > > and it "just run" (like test/unit seems to)? > > I can't thi

Re: [rspec-users] odd error

2009-11-12 Thread rogerdpack
> > expected: "`four, five` are not recognized argument keywords", > >     got: "`five, four` are not recognized argument keywords" (using > > ==) > > ./spec\arguments_spec.rb:140: > > Please be sure to post the relevant code when you are asking for help on > this list. I'll take a guess at what is

[rspec-users] ruby file.spec?

2009-11-12 Thread rogerdpack
perhaps this has been discussed before and you can point me to the right thread, but is it possible to run specs from the command line using just ruby? ruby arguments_spec.rb and it "just run" (like test/unit seems to)? I can't think of a great reason why this would be useful, other than not havi

Re: [rspec-users] Returning a StringIO object from a stub

2009-11-12 Thread JGailor
Thanks Paul, As soon as I read the first part of your message I had one of those face-palm moments. Thanks for your help. In the case of this expectation, I'm not sure which path I'll take as this particular test is looking for it to read a certain number of lines of input before finding the tar