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
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
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 => '',
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,
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
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
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
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_
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_