From 0732ed367ceba4cfc2bd27690b7541545f62c3a2 Mon Sep 17 00:00:00 2001 From: charliesome Date: Mon, 2 Sep 2013 05:08:20 +0000 Subject: [PATCH] * test/rake/test_rake_rules.rb: add space after string literal to prevent conflict with string options syntax "foo"opts * test/rss/rss-assertions.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ test/rake/test_rake_rules.rb | 6 +++--- test/rss/rss-assertions.rb | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index bcee27d960..d8abce0ae5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Sep 2 14:01:00 2013 Charlie Somerville + + * test/rake/test_rake_rules.rb: add space after string literal to + prevent conflict with string options syntax "foo"opts + + * test/rss/rss-assertions.rb: ditto + Mon Sep 2 12:28:38 2013 Tanaka Akira * test/ruby/test_bignum.rb (test_interrupt_during_to_s): Disable it diff --git a/test/rake/test_rake_rules.rb b/test/rake/test_rake_rules.rb index 3f6e352322..664aa983e5 100644 --- a/test/rake/test_rake_rules.rb +++ b/test/rake/test_rake_rules.rb @@ -298,9 +298,9 @@ class TestRakeRules < Rake::TestCase actions = [] create_file("abc.xml") rule '.y' => '.xml' do actions << 'y' end - rule '.c' => '.y' do actions << 'c'end - rule '.o' => '.c' do actions << 'o'end - rule '.exe' => '.o' do actions << 'exe'end + rule '.c' => '.y' do actions << 'c' end + rule '.o' => '.c' do actions << 'o' end + rule '.exe' => '.o' do actions << 'exe' end Task["abc.exe"].invoke assert_equal ['y', 'c', 'o', 'exe'], actions end diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb index 090980a650..5763a55eb1 100644 --- a/test/rss/rss-assertions.rb +++ b/test/rss/rss-assertions.rb @@ -332,7 +332,7 @@ EOA _wrap_assertion do [nil, "text", "html"].each do |type| attr = "" - attr = " type=\"#{type}\""if type + attr = " type=\"#{type}\"" if type assert_parse(generator.call(<<-EOA), :nothing_raised) <#{tag_name}#{attr}/> EOA