1

I just started using AutoTest. As far as i can tell i have everything configured, but everytime i run autotest then i get the following error coming from my test_helper.rb:

richards-macbook-pro: $ autotest 
loading autotest/rails
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/unit/link_test.rb test/functional/links_controller_test.rb test/unit/tagging_test.rb test/functional/tag_controller_test.rb test/unit/tag_test.rb].each { |f| require f }" | unit_diff -u
./test/unit/../test_helper.rb:26: undefined method `use_transactional_fixtures=' for Test::Unit::TestCase:Class (NoMethodError)
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
    from ./test/unit/link_test.rb:1
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
    from -e:1
    from -e:1:in `each'
    from -e:1

================================================================================

I thought this was curious, and I'm just starting to use rspec to test rather than the traditional rails tools. I attempted removing the entire test folder from my project (but keeping my spec/ folder) and when i do that autotest will never fully launch:

richards-macbook-pro: $ autotest 
loading autotest/rails

Even if i save something in my spec folder, it won't update. This doesn't seem to be common, does anyone know a possible work around to this, or maybe a way to just tell autottest to only look at my /spec folder???

1 Answer 1

3

If you have done

./script/generate rspec 

in your rails app, You can use

autospec 

to make you specs run automatically.

HTH

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.