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

- old
+ new

@@ -40,11 +40,11 @@ fail 'should have raised an exception' rescue => boom assert_kind_of NameError, boom line = boom.backtrace.grep(/^test\.csv:/).first assert line, "Backtrace didn't contain test.csv" - file, line, meth = line.split(":") + _file, line, _meth = line.split(":") assert_equal '4', line end end test "passing options to engine" do @@ -59,10 +59,10 @@ output = template.render(scope) assert_equal output, scope.instance_variable_get(outvar.to_sym) end end -rescue LoadError => boom +rescue LoadError warn "Tilt::CSVTemplate (disabled) please install 'fastercsv' if using ruby 1.8.x" end __END__