tasks/unit_test.rake in myrrha-1.1.0 vs tasks/unit_test.rake in myrrha-1.2.0
- old
+ new
@@ -43,11 +43,11 @@
# Request that the tests be run with the warning flag set.
# E.g. warning=true implies "ruby -w" used to run the tests.
t.warning = false
# Glob pattern to match test files. (default is 'test/test*.rb')
- t.pattern = "test/test*.rb"
+ t.pattern = "test/test_*.rb"
# Style of test loader to use. Options are:
#
# * :rake -- Rake provided test loading script (default).
# * :testrb -- Ruby provided test loading script.
@@ -66,10 +66,10 @@
t.test_files = nil
end
rescue LoadError => ex
task :unit_test do
- abort 'rspec is not available. In order to run spec, you must: gem install rspec'
+ abort "rake/testtask does not seem available...\n #{ex.message}"
end
ensure
desc "Run all tests"
task :test => [:unit_test]
end