tasks/unit_test.rake in quickl-0.3.0 vs tasks/unit_test.rake in quickl-0.4.0
- old
+ new
@@ -29,11 +29,11 @@
desc "Run unit tests"
Rake::TestTask.new(:unit_test) do |t|
# List of directories to added to $LOAD_PATH before running the
# tests. (default is 'lib')
- t.libs = ["lib"]
+ t.libs = ["lib", "examples"]
# True if verbose test output desired. (default is false)
t.verbose = false
# Test options passed to the test suite. An explicit TESTOPTS=opts
@@ -55,21 +55,21 @@
#
t.loader = :rake
# Array of commandline options to pass to ruby when running test
# loader.
- t.ruby_opts = ["-w"]
+ t.ruby_opts = []
# Explicitly define the list of test files to be included in a
# test. +list+ is expected to be an array of file names (a
# FileList is acceptable). If both +pattern+ and +test_files+ are
# used, then the list of test files is the union of the two.
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