From a22b8e96ead33b0f97ed5243dbad7f7b6cd5135d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:19:15 +0000 Subject: Prefer single-quotes when you don't need interpolation. So "foo" is less good than 'foo'. --- t/test-http-vs-https.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 't/test-http-vs-https.rb') diff --git a/t/test-http-vs-https.rb b/t/test-http-vs-https.rb index b320777..ab44ffc 100755 --- a/t/test-http-vs-https.rb +++ b/t/test-http-vs-https.rb @@ -42,13 +42,13 @@ class TestTestName < Test::Unit::TestCase test = nil assert_nothing_raised do - test = Custodian::TestFactory.create( "http://example.com/ must run http." ) + test = Custodian::TestFactory.create( 'http://example.com/ must run http.' ) end assert( test ) assert( test.kind_of? Array ) assert( ! test.empty? ) - assert_equal( test[0].get_type, "http" ) + assert_equal( test[0].get_type, 'http' ) end @@ -59,13 +59,13 @@ class TestTestName < Test::Unit::TestCase test = nil assert_nothing_raised do - test = Custodian::TestFactory.create( "https://example.com/ must run https." ) + test = Custodian::TestFactory.create( 'https://example.com/ must run https.' ) end assert( test ) assert( test.kind_of? Array ) assert( ! test.empty? ) - assert_equal( test[0].get_type, "https" ) + assert_equal( test[0].get_type, 'https' ) end @@ -76,19 +76,19 @@ class TestTestName < Test::Unit::TestCase assert_raise ArgumentError do - Custodian::TestFactory.create( "https://example.com/ must run http." ) + Custodian::TestFactory.create( 'https://example.com/ must run http.' ) end assert_raise ArgumentError do - Custodian::TestFactory.create( "http://example.com/ must run https." ) + Custodian::TestFactory.create( 'http://example.com/ must run https.' ) end assert_nothing_raised do - Custodian::TestFactory.create( "http://example.com/ must run http." ) + Custodian::TestFactory.create( 'http://example.com/ must run http.' ) end assert_nothing_raised do - Custodian::TestFactory.create( "https://example.com/ must run https." ) + Custodian::TestFactory.create( 'https://example.com/ must run https.' ) end end -- cgit v1.2.1