Re: [rspec-users] getting autotest to monitor changes in lib directory

2008-03-29 Thread David Chelimsky
On Fri, Mar 28, 2008 at 3:03 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > Autotest monitors changes in app/models. How can I get autotest to > monitor changes in lib? So that whenever something changes in lib or > specs/lib, it runs the appropriate spec? This might help you: http://tinyurl.com

[rspec-users] parameterized shared specs: good or bad idea?

2008-03-29 Thread Nick C
Hi, I've come across a couple of cases recently in which I was wishing it was possible to parameterize shared specs. An example: I have defined a number of rails resources, and it seems wasteful to have tens of generated 'xxx_controller_spec' 'xxx_controller_routing' specs that check the same mech

Re: [rspec-users] parameterized shared specs: good or bad idea?

2008-03-29 Thread Nick C
Hmm, after investigating a little more, this doesn't sound feasible. Instance variables are already shared between shared specs and their callers, but I was thinking of the spec names themselves also being parameterised, so that the following would be possible: it "should map { :controller => '',

Re: [rspec-users] parameterized shared specs: good or bad idea?

2008-03-29 Thread David Chelimsky
On Sat, Mar 29, 2008 at 3:03 PM, Nick C <[EMAIL PROTECTED]> wrote: > Hmm, after investigating a little more, this doesn't sound feasible. > Instance variables are already shared between shared specs and their > callers, but I was thinking of the spec names themselves also being > parameterised,

[rspec-users] My argument constraints are not working.

2008-03-29 Thread David Beckwith
describe "pretending to crawl craigslist." do before do @html_start = File.read( RAILS_ROOT + "/spec/fixtures/feeds/ start_page.html" ) @response_start = mock_model( Net::HTTP, :body => @html_start, :nil? => false ) @hawlee_start = Hawlee.new(@uri_start, nil, 0) @htgrep = H

Re: [rspec-users] What is SpecServer?

2008-03-29 Thread David Beckwith
Just to help clarify for the newbies like me. script/spec_server runs in conjunction with script/spec but not ruby your_spec.rb. It seems like the way to use script/spec_server is to have 2 console programs open: ruby script/spec_server That will have the spec_server running in the background

Re: [rspec-users] My argument constraints are not working.

2008-03-29 Thread David Chelimsky
On Sat, Mar 29, 2008 at 9:23 PM, David Beckwith <[EMAIL PROTECTED]> wrote: > describe "pretending to crawl craigslist." do > > before do > @html_start = File.read( RAILS_ROOT + "/spec/fixtures/feeds/ > start_page.html" ) > @response_start = mock_model( Net::HTTP, :body => > @html_sta

Re: [rspec-users] What is SpecServer?

2008-03-29 Thread Scott Taylor
On Mar 29, 2008, at 11:11 PM, David Beckwith wrote: > Just to help clarify for the newbies like me. script/spec_server runs > in conjunction with script/spec but not ruby your_spec.rb. It seems > like the way to use script/spec_server is to have 2 console programs > open: > > ruby script/spec_

Re: [rspec-users] What is SpecServer?

2008-03-29 Thread Scott Taylor
On Mar 29, 2008, at 11:11 PM, David Beckwith wrote: > Just to help clarify for the newbies like me. script/spec_server runs > in conjunction with script/spec but not ruby your_spec.rb. It seems > like the way to use script/spec_server is to have 2 console programs > open: > > ruby script/spec_