test/test_helper.rb in sstephenson-sprockets-0.1.1 vs test/test_helper.rb in sstephenson-sprockets-0.3.0
- old
+ new
@@ -36,8 +36,8 @@
def source_file(location, environment = @environment)
Sprockets::SourceFile.new(environment, pathname(location, environment))
end
def source_line(line, source_file = nil, line_number = 1)
- Sprockets::SourceLine.new(source_file, line, line_number)
+ Sprockets::SourceLine.new(source_file || source_file("dummy"), line, line_number)
end
end