On Fri, Aug 14, 2009 at 9:13 AM, Peter
Fitzgibbons<[email protected]> wrote:
> Hello All,
>
> a-la cucumber:
> Feature: Spec runs Integrations
>   Scenario: When code changes, Integration specs run
>     Given a rails app with controllers, models, view, helpers
>     And a spec under spec/integration
>     When code changes in app
>     Then specs under spec/integration are run.
>
> So, in .autospec
>
>
> Autotest.add_hook :initialize do |at|
>   at.add_mapping(%r%^app/(.*)\.rb$%) {
>     at.files_matching %r%^spec/integration/.*_spec\.rb$%
>   }
>
>   at.find_directories << 'spec/integration'
> end
>
> This is my best guess.  Could somone show me the .autospec that correclty
> accomplishes the story above?

There is no .autospec. Try .autotest :)

The autospec command just sets an env variable and then calls autotest
- after that it's all autotest.

Cheers,
David

> I'm feeling dense right now, so feel free to point out the painfully
> obvious, even including which page in RSpec book spells out my density.
>
> Thanks all!
>
> Peter Fitzgibbons
> (847) 687-7646
> Email: [email protected]
> IM GTalk: peter.fitzgibbons
> IM AOL: [email protected]
>
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to