test/tilt_erbtemplate_test.rb in tilt-2.0.5 vs test/tilt_erbtemplate_test.rb in tilt-2.0.6

- old
+ new

@@ -66,11 +66,11 @@ fail 'should have raised an exception' rescue => boom assert_kind_of NameError, boom line = boom.backtrace.grep(/^test\.erb:/).first assert line, "Backtrace didn't contain test.erb" - file, line, meth = line.split(":") + _file, line, _meth = line.split(":") assert_equal '13', line end end test "backtrace file and line reporting with locals" do @@ -81,11 +81,11 @@ template.render(nil, :name => 'Joe', :foo => 'bar') fail 'should have raised an exception' rescue => boom assert_kind_of RuntimeError, boom line = boom.backtrace.first - file, line, meth = line.split(":") + file, line, _meth = line.split(":") assert_equal 'test.erb', file assert_equal '6', line end end @@ -168,11 +168,11 @@ fail 'should have raised an exception' rescue => boom assert_kind_of NameError, boom line = boom.backtrace.grep(/^test\.erb:/).first assert line, "Backtrace didn't contain test.erb" - file, line, meth = line.split(":") + _file, line, _meth = line.split(":") assert_equal '13', line end end test "backtrace file and line reporting with locals" do @@ -183,10 +183,10 @@ template.render(Scope.new, :name => 'Joe', :foo => 'bar') fail 'should have raised an exception' rescue => boom assert_kind_of RuntimeError, boom line = boom.backtrace.first - file, line, meth = line.split(":") + file, line, _meth = line.split(":") assert_equal 'test.erb', file assert_equal '6', line end end