From dc1bbf37f31b4478aef43051ea6494f23cfe04b0 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 3 May 2012 19:35:26 +0100 Subject: 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. --- test/tc_mauve_configuration.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3