aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-05-03 19:35:26 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-05-03 19:35:26 +0100
commitdc1bbf37f31b4478aef43051ea6494f23cfe04b0 (patch)
tree72f023f5dfce7c3e5b1aefb499ccbf3e72ab8175 /test
parent757853bb96c2f75bcb28f16fcf80601abee48033 (diff)
Update Time.bank_holiday? etc. to work correctly.
Mauve::Configuration#do_parse_time now a class method, and used elsewhere to standardise ranges in the configuration file.
Diffstat (limited to 'test')
-rw-r--r--test/tc_mauve_configuration.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/tc_mauve_configuration.rb b/test/tc_mauve_configuration.rb
index bbc1901..36a929e 100644
--- a/test/tc_mauve_configuration.rb
+++ b/test/tc_mauve_configuration.rb
@@ -14,7 +14,7 @@ class TcMauveConfiguration < Mauve::UnitTest
teardown_logger
end
- def test_do_parse_range
+ def test_parse_range
[
[[1.0...2.0], 1],
[[1.0...3.0], 1..2],
@@ -28,8 +28,7 @@ class TcMauveConfiguration < Mauve::UnitTest
[[6.0...7.0, 0.0...1.0], 6..0, 0...7],
[["x".."z", "a".."c"], "x".."c", "a".."z"]
].each do |output, *input|
- c = Configuration.new
- assert_equal(output, c.__send__("do_parse_range",*input))
+ assert_equal(output, Configuration.parse_range(*input))
end
end