diff --git a/lib/mruby/presym.rb b/lib/mruby/presym.rb index 016c2b20e..7f74569fa 100644 --- a/lib/mruby/presym.rb +++ b/lib/mruby/presym.rb @@ -102,7 +102,7 @@ module MRuby @list_path ||= "#{@build.build_dir}/presym".freeze end - def header_dir; + def header_dir @header_dir ||= "#{@build.build_dir}/include/mruby/presym".freeze end diff --git a/test/t/module.rb b/test/t/module.rb index 9aa018280..bcff595d3 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -686,7 +686,7 @@ end # assert_nothing_raised(SystemStackError, bug10847) do # 0.3.numerator # end - # end; + # end #end assert 'Module#prepend to frozen class' do diff --git a/test/t/string.rb b/test/t/string.rb index 447493227..2e9025c97 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -507,8 +507,8 @@ assert('String#replace', '15.2.10.5.28') do b = 'abc' * 10 c = ('cba' * 10).dup - b.replace(c); - c.replace(b); + b.replace(c) + c.replace(b) assert_equal c, b # shared string