On 9/5/07, <b class="gmail_sendername">David Chelimsky</b> <<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Autotest<br>> Out of curiosity, does anyone know how to get autotest to pick up new<br>> folders under spec/? Seems like I might have to modify rails_rspec.rb in<br>> lib/autotest. We were considering separating our acceptance tests from the
<br>> rest.<br><br>You could either modify rails_rspec.rb, or you could add a .autotest<br>file in the project root and rewrite the mappings there. See autotests<br>docs for how to do that (look for info on hooks).</blockquote>
<div><br>Unfortunately when rails_rspec.rb runs, it seems to write over anything established in .autotest. Should I file a bug on that as well?<br><br><span style="font-family: courier new,monospace;">loading autotest/rails_rspec
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Mappings @ .autotest:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
(?-mix:^test\/test_.*rb$) => #<Proc:0xb7b2c6ec@/usr/lib/ruby/gems/1.8/gems/ZenTest-3.6.1/lib/autotest.rb:152></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
(?-mix:^spec\/(models|controllers|views|helpers|lib|acceptance)\/.*rb$) => #<Proc:0xb7b21c88@./.autotest:51></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
(?-mix:^lib\/.*\.rb$) => #<Proc:0xb7b2c87c@/usr/lib/ruby/gems/1.8/gems/ZenTest-3.6.1/lib/autotest.rb:149></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
Mappings @ rails_rspec.rb:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^(spec\/(spec_helper|shared\/.*)|config\/(boot|environment(s\/test)?))\.rb$) => #<Proc:0xb7ab4750@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:68>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^app\/controllers\/(.*)\.rb$) => #<Proc:0xb7ab5434@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:46>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^app\/models\/(.*)\.rb$) => #<Proc:0xb7ab5920@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:40>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^app\/helpers\/(.*)_helper\.rb$) => #<Proc:0xb7ab4f0c@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:49>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^spec\/(models|controllers|views|helpers|lib)\/.*rb$) => #<Proc:0xb7ab5b8c@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:37>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^config\/database\.yml$) => #<Proc:0xb7ab48a4@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:65>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^app\/views\/(.*)$) => #<Proc:0xb7ab56a0@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:43>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^config\/routes\.rb$) => #<Proc:0xb7ab4a84@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:62>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^app\/helpers\/application_helper\.rb$) => #<Proc:0xb7ab4db8@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:56>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^(test|spec)\/fixtures\/(.*).yml$) => #<Proc:0xb7ab5d1c@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:34>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^lib\/(.*)\.rb$) => #<Proc:0xb7ab44e4@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:71>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (?-mix:^app\/controllers\/application\.rb$) => #<Proc:0xb7ab4bd8@./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:59>
</span><br style="font-family: courier new,monospace;"></div><br></div> - Geoffrey