Loading message and test results appears after running rake task in Rails application
rake, ruby-on-rails
Solution
Solution can be found here:
http://github.com/thoughtbot/shoulda/issues/#issue/59
Basically don't require the shoulda gem unless it's the test environment (where test/unit would already be required).
Problem
The following output appears after running some rake tasks: ``` Loaded suite /usr/bin/rake Started Finished in 0.00042 seconds. 0 tests, 0 assertions, 0 failures, 0 errors ``` This output is not useful or necessary for tasks not related to testing. I'd like to prevent it from appearing. I would assume it stems from requiring a certain file or including a certain module. Updated: It appears that I was wrong and this does come up during some of the tasks built into Rails. Here is the output of fixtures being loaded with `--trace`. ``` $ rake db:fixtures:load --trace ** Invoke db:fixtures:load (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:fixtures:load Loaded suite /usr/bin/rake Started Finished in 0.000255 seconds. 0 tests, 0 assertions, 0 failures, 0 errors ```