From 56d3e8ab7b5bb29e814da0097ec18064685a1f60 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:22:46 +0000 Subject: More minor space fixups --- t/test-custodian-parser.rb | 6 +++--- t/test-custodian-testfactory.rb | 8 ++++---- t/test-custodian-util-bytemark.rb | 2 +- t/test-custodian-util-timespan.rb | 4 ++-- t/test-suite | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 't') diff --git a/t/test-custodian-parser.rb b/t/test-custodian-parser.rb index 6d612b1..1af5e28 100755 --- a/t/test-custodian-parser.rb +++ b/t/test-custodian-parser.rb @@ -292,7 +292,7 @@ EOF 'http://example must run http not following redirect.' => false, } - data.each do |str,follow| + data.each do |str, follow| assert_nothing_raised do # @@ -331,7 +331,7 @@ EOF 'http://example must run http without cache busting.' => false, } - data.each do |str,cb| + data.each do |str, cb| assert_nothing_raised do # @@ -377,7 +377,7 @@ EOF # # For each test # - data.each do |str,fail| + data.each do |str, fail| assert_nothing_raised do # diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb index c50ad56..db25462 100755 --- a/t/test-custodian-testfactory.rb +++ b/t/test-custodian-testfactory.rb @@ -69,7 +69,7 @@ class TestTestFactory < Test::Unit::TestCase # # Run each test # - data.each do |str,prt| + data.each do |str, prt| assert_nothing_raised do obj = Custodian::TestFactory.create(str) @@ -101,7 +101,7 @@ class TestTestFactory < Test::Unit::TestCase # # Run each test # - data.each do |str,prt| + data.each do |str, prt| assert_nothing_raised do obj = Custodian::TestFactory.create(str) @@ -149,7 +149,7 @@ class TestTestFactory < Test::Unit::TestCase # # Run each test # - data.each do |str,prt| + data.each do |str, prt| assert_nothing_raised do obj = Custodian::TestFactory.create(str) @@ -225,7 +225,7 @@ class TestTestFactory < Test::Unit::TestCase # # Run each test # - data.each do |str,inv| + data.each do |str, inv| assert_nothing_raised do obj = Custodian::TestFactory.create(str) diff --git a/t/test-custodian-util-bytemark.rb b/t/test-custodian-util-bytemark.rb index 3b17f4f..3342569 100755 --- a/t/test-custodian-util-bytemark.rb +++ b/t/test-custodian-util-bytemark.rb @@ -50,7 +50,7 @@ class TestBytemarkUtil < Test::Unit::TestCase } - to_test.each do |name,inside| + to_test.each do |name, inside| if inside assert(Custodian::Util::Bytemark.inside?(name) == true) diff --git a/t/test-custodian-util-timespan.rb b/t/test-custodian-util-timespan.rb index 72428be..3ac37a6 100755 --- a/t/test-custodian-util-timespan.rb +++ b/t/test-custodian-util-timespan.rb @@ -215,14 +215,14 @@ class TestTimeSpanUtil < Test::Unit::TestCase def test_wrap_around for h in 00..23 - assert_equal(1, Custodian::Util::TimeSpan.to_hours(h,h).size) + assert_equal(1, Custodian::Util::TimeSpan.to_hours(h, h).size) end # # But the time-period 00-23 is a full day # assert_equal(24, - Custodian::Util::TimeSpan.to_hours(0,23).size) + Custodian::Util::TimeSpan.to_hours(0, 23).size) end diff --git a/t/test-suite b/t/test-suite index 26ddb1f..0d3589a 100755 --- a/t/test-suite +++ b/t/test-suite @@ -27,7 +27,7 @@ dir = File.dirname(__FILE__) # # Load each file in the same directory. # -Dir.glob(File.join(dir,'t*.rb')).each do |test| +Dir.glob(File.join(dir, 't*.rb')).each do |test| require test end -- cgit v1.2.1