grosser / autotest

Save a file, autotest will run the matching tests! (Autotest without ZenTest)
121 stars 20 forks source link

Fix autotest-standalone so it works with --style "rails rspec2" #35

Closed sampierson closed 11 years ago

sampierson commented 11 years ago

Hello, I found the time to stop monkey patching this and fix it in a repo:

I couldn't figure out a way to get autotest-standalone working with Rails & RSpec2, as there was no way via the -command line -style option to setup the array %w{rails rspec2} necessary to get both the require and the const_get working. If you used "rspec_rails2" the require would work, but the contst_Get fails when it looks for Autotest::Rails_rspec2.

So, I split the --style option on spaces, and now everything works fine with --style "rails rspec2"

-Sam.

grosser commented 11 years ago

can you add a test ?

sampierson commented 11 years ago

I could not see any tests for --style. Please point me at them.

On Nov 13, 2012, at 9:04 PM, Michael Grosser wrote:

can you add a test ?

— Reply to this email directly or view it on GitHub.

grosser commented 11 years ago

I'd say here looks good

sampierson commented 11 years ago

Testing the --style option alone would be pretty useless as the real work is done in Autotest.runner. I added Mocha so I could test that too. -Sam.

On Nov 14, 2012, at 7:38 AM, Michael Grosser wrote:

I'd say here looks good

— Reply to this email directly or view it on GitHub.

grosser commented 11 years ago

Nice :)

grosser commented 11 years ago

4.5.11