[前][次][番号順一覧][スレッド一覧]

ruby-changes:30690

From: charliesome <ko1@a...>
Date: Mon, 2 Sep 2013 14:08:28 +0900 (JST)
Subject: [ruby-changes:30690] charliesome:r42769 (trunk): * test/rake/test_rake_rules.rb: add space after string literal to

charliesome	2013-09-02 14:08:20 +0900 (Mon, 02 Sep 2013)

  New Revision: 42769

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42769

  Log:
    * 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

  Modified files:
    trunk/ChangeLog
    trunk/test/rake/test_rake_rules.rb
    trunk/test/rss/rss-assertions.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42768)
+++ ChangeLog	(revision 42769)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Sep  2 14:01:00 2013  Charlie Somerville  <charliesome@r...>
+
+	* 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  <akr@f...>
 
 	* test/ruby/test_bignum.rb (test_interrupt_during_to_s): Disable it
Index: test/rake/test_rake_rules.rb
===================================================================
--- test/rake/test_rake_rules.rb	(revision 42768)
+++ test/rake/test_rake_rules.rb	(revision 42769)
@@ -298,9 +298,9 @@ class TestRakeRules < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_rules.rb#L298
     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
Index: test/rss/rss-assertions.rb
===================================================================
--- test/rss/rss-assertions.rb	(revision 42768)
+++ test/rss/rss-assertions.rb	(revision 42769)
@@ -332,7 +332,7 @@ EOA https://github.com/ruby/ruby/blob/trunk/test/rss/rss-assertions.rb#L332
       _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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]