On Fri, Aug 14, 2009 at 9:13 AM, Peter
Fitzgibbons<peter.fitzgibbons at gmail.com> 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: peter.fitzgibbons at gmail.com
> IM GTalk: peter.fitzgibbons
> IM AOL: peter.fitzgibbons at gmail.com
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>