1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
charliesome 2013-09-02 05:08:20 +00:00
parent dd9c8b88af
commit 0732ed367c
3 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
Mon Sep 2 14:01:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
* 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@fsij.org>
* test/ruby/test_bignum.rb (test_interrupt_during_to_s): Disable it

View file

@ -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

View file

@ -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