templates/ruby/src/tasks/unit_test.rake in noe-1.5.0 vs templates/ruby/src/tasks/unit_test.rake in noe-1.5.1
- old
+ new
@@ -1,29 +1,29 @@
# Installs a rake task for for running unit tests.
#
-# This file installs the 'rake unit_test' and extends 'rake test' to run unit
-# tests, if any. It is automatically generated by Noe from your .noespec file,
-# and should therefore be configured there, under the variables/rake_tasks/unit_test
+# This file installs the 'rake unit_test' and extends 'rake test' to run unit
+# tests, if any. It is automatically generated by Noe from your .noespec file,
+# and should therefore be configured there, under the variables/rake_tasks/unit_test
# entry, as illustrated below:
#
# variables:
# rake_tasks:
# unit_test:
# pattern: test/test*.rb
# verbose: false
# warning: false
# ...
#
-# If you have specific needs requiring manual intervention on this file,
+# If you have specific needs requiring manual intervention on this file,
# don't forget to set safe-override to false in your noe specification:
-#
+#
# template-info:
# manifest:
# tasks/unit_test.rake:
# safe-override: false
#
-# More info about the TestTask and its options can be found on
+# More info about the TestTask and its options can be found on
# http://rake.rubyforge.org/classes/Rake/TestTask.html
#
begin
require 'rake/testtask'
desc "Run unit tests"
@@ -34,11 +34,11 @@
t.libs = +{rake_tasks.unit_test.libs}
# True if verbose test output desired. (default is false)
t.verbose = +{rake_tasks.unit_test.verbose}
- # Test options passed to the test suite. An explicit TESTOPTS=opts
+ # Test options passed to the test suite. An explicit TESTOPTS=opts
# on the command line will override this. (default is NONE)
t.options = +{rake_tasks.unit_test.options}
# Request that the tests be run with the warning flag set.
# E.g. warning=true implies "ruby -w" used to run the tests.
@@ -50,14 +50,14 @@
# Style of test loader to use. Options are:
#
# * :rake -- Rake provided test loading script (default).
# * :testrb -- Ruby provided test loading script.
# * :direct -- Load tests using command line loader.
- #
+ #
t.loader = +{rake_tasks.unit_test.loader}
- # Array of commandline options to pass to ruby when running test
+ # Array of commandline options to pass to ruby when running test
# loader.
t.ruby_opts = +{rake_tasks.unit_test.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
@@ -72,6 +72,5 @@
end
ensure
desc "Run all tests"
task :test => [:unit_test]
end
-