Method: SourceLineTest#test_inspect_should_include_source_file_location_and_line_number
- Defined in:
- lib/sprockets/test/test_source_line.rb
#test_inspect_should_include_source_file_location_and_line_number ⇒ Object
69 70 71 72 73 74 |
# File 'lib/sprockets/test/test_source_line.rb', line 69 def test_inspect_should_include_source_file_location_and_line_number environment = environment_for_fixtures pathname = Sprockets::Pathname.new(environment, "/a/b/c.js") source_file = Sprockets::SourceFile.new(environment, pathname) assert_equal "line 25 of #{File.expand_path("/a/b/c.js")}", source_line("hello", source_file, 25).inspect end |