petebrowne / sprockets-sass

Better Sass integration with Sprockets 2.x
MIT License
90 stars 29 forks source link

specs fail on 1.9.3 #13

Closed grosser closed 11 years ago

grosser commented 12 years ago

bundle exec rake (osx)


  5) Sprockets::Sass mirrors Sass::Rails's #asset_path helpers
     Failure/Error: @env['asset_path.css'].to_s.should == %(body {\n  background: url("/assets/image.jpg"); }\n)
       expected: "body {\n  background: url(\"/assets/image.jpg\"); }\n"
            got: "body {\n  background: url(asset-path(\"image.jpg\", image)); }\n" (using ==)
       Diff:
       @@ -1,3 +1,3 @@
        body {
       -  background: url("/assets/image.jpg"); }
       +  background: url(asset-path("image.jpg", image)); }
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
     # ./spec/sprockets-sass_spec.rb:276:in `block (2 levels) in <top (required)>'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `instance_eval'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:84:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:353:in `block in run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:335:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/reporter.rb:34:in `report'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:25:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `block in autorun'

Finished in 0.69181 seconds
30 examples, 5 failures

Failed examples:

rspec ./spec/sprockets-sass_spec.rb:227 # Sprockets::Sass adds the #asset_path helper
rspec ./spec/sprockets-sass_spec.rb:240 # Sprockets::Sass adds the #image_path helper
rspec ./spec/sprockets-sass_spec.rb:253 # Sprockets::Sass adds the #asset_data_uri helper
rspec ./spec/sprockets-sass_spec.rb:260 # Sprockets::Sass mirrors Compass's #image_url helper
rspec ./spec/sprockets-sass_spec.rb:271 # Sprockets::Sass mirrors Sass::Rails's #asset_path helpers
rake aborted!
/Users/mgrosser/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -S rspec ./spec/sprockets-sass_spec.rb failed
petebrowne commented 12 years ago

I wasn't able to reproduce this with 1.9.3-p194 or 1.9.3-p125. Can you gist your Gemfile.lock file? Also, the rest of the failed specs might help. Thanks

grosser commented 12 years ago
bundle exec rake
/Users/mgrosser/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -S rspec ./spec/sprockets-sass_spec.rb
........................FFFFF.

Failures:

  1) Sprockets::Sass adds the #asset_path helper
     Failure/Error: @env['asset_path.css'].to_s.should == %(body {\n  background: url("/assets/image.jpg"); }\n)
       expected: "body {\n  background: url(\"/assets/image.jpg\"); }\n"
            got: "body {\n  background: url(asset-path(\"image.jpg\")); }\n" (using ==)
       Diff:
       @@ -1,3 +1,3 @@
        body {
       -  background: url("/assets/image.jpg"); }
       +  background: url(asset-path("image.jpg")); }
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
     # ./spec/sprockets-sass_spec.rb:234:in `block (2 levels) in <top (required)>'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `instance_eval'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:84:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:353:in `block in run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:335:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/reporter.rb:34:in `report'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:25:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `block in autorun'

  2) Sprockets::Sass adds the #image_path helper
     Failure/Error: @env['image_path.css'].to_s.should == %(body {\n  background: url("/assets/image.jpg"); }\n)
       expected: "body {\n  background: url(\"/assets/image.jpg\"); }\n"
            got: "body {\n  background: url(image-path(\"image.jpg\")); }\n" (using ==)
       Diff:
       @@ -1,3 +1,3 @@
        body {
       -  background: url("/assets/image.jpg"); }
       +  background: url(image-path("image.jpg")); }
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
     # ./spec/sprockets-sass_spec.rb:247:in `block (2 levels) in <top (required)>'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `instance_eval'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:84:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:353:in `block in run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:335:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/reporter.rb:34:in `report'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:25:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `block in autorun'

  3) Sprockets::Sass adds the #asset_data_uri helper
     Failure/Error: @env['asset_data_uri.css'].to_s.should == %(body {\n  background: url(data:image/jpeg;base64,%2F9j%2F4AAQSkZJRgABAgAAZABkAAD%2F7AARRHVja3kAAQAEAAAAPAAA%2F%2B4ADkFkb2JlAGTAAAAAAf%2FbAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f%2F8AAEQgAAQABAwERAAIRAQMRAf%2FEAEoAAQAAAAAAAAAAAAAAAAAAAAgBAQAAAAAAAAAAAAAAAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAARAQAAAAAAAAAAAAAAAAAAAAD%2F2gAMAwEAAhEDEQA%2FACoD%2F9k%3D); }\n)
       expected: "body {\n  background: url(data:image/jpeg;base64,%2F9j%2F4AAQSkZJRgABAgAAZABkAAD%2F7AARRHVja3kAAQAEAAAAPAAA%2F%2B4ADkFkb2JlAGTAAAAAAf%2FbAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f%2F8AAEQgAAQABAwERAAIRAQMRAf%2FEAEoAAQAAAAAAAAAAAAAAAAAAAAgBAQAAAAAAAAAAAAAAAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAARAQAAAAAAAAAAAAAAAAAAAAD%2F2gAMAwEAAhEDEQA%2FACoD%2F9k%3D); }\n"
            got: "body {\n  background: asset-data-uri(\"image.jpg\"); }\n" (using ==)
       Diff:
       @@ -1,3 +1,3 @@
        body {
       -  background: url(data:image/jpeg;base64,%2F9j%2F4AAQSkZJRgABAgAAZABkAAD%2F7AARRHVja3kAAQAEAAAAPAAA%2F%2B4ADkFkb2JlAGTAAAAAAf%2FbAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f%2F8AAEQgAAQABAwERAAIRAQMRAf%2FEAEoAAQAAAAAAAAAAAAAAAAAAAAgBAQAAAAAAAAAAAAAAAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAARAQAAAAAAAAAAAAAAAAAAAAD%2F2gAMAwEAAhEDEQA%2FACoD%2F9k%3D); }
       +  background: asset-data-uri("image.jpg"); }
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
     # ./spec/sprockets-sass_spec.rb:257:in `block (2 levels) in <top (required)>'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `instance_eval'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:84:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:353:in `block in run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:335:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/reporter.rb:34:in `report'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:25:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `block in autorun'

  4) Sprockets::Sass mirrors Compass's #image_url helper
     Failure/Error: @env['image_path.css'].to_s.should == %(body {\n  background: url("/assets/image.jpg"); }\n)
       expected: "body {\n  background: url(\"/assets/image.jpg\"); }\n"
            got: "body {\n  background: url(/image.jpg); }\n" (using ==)
       Diff:
       @@ -1,3 +1,3 @@
        body {
       -  background: url("/assets/image.jpg"); }
       +  background: url(/image.jpg); }
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
     # ./spec/sprockets-sass_spec.rb:266:in `block (2 levels) in <top (required)>'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `instance_eval'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:84:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:353:in `block in run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:335:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/reporter.rb:34:in `report'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:25:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `block in autorun'

  5) Sprockets::Sass mirrors Sass::Rails's #asset_path helpers
     Failure/Error: @env['asset_path.css'].to_s.should == %(body {\n  background: url("/assets/image.jpg"); }\n)
       expected: "body {\n  background: url(\"/assets/image.jpg\"); }\n"
            got: "body {\n  background: url(asset-path(\"image.jpg\", image)); }\n" (using ==)
       Diff:
       @@ -1,3 +1,3 @@
        body {
       -  background: url("/assets/image.jpg"); }
       +  background: url(asset-path("image.jpg", image)); }
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-expectations-2.10.0/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
     # ./spec/sprockets-sass_spec.rb:276:in `block (2 levels) in <top (required)>'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `instance_eval'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:84:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:353:in `block in run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `run_examples'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:335:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `map'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block in run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/reporter.rb:34:in `report'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:25:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run'
     # /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `block in autorun'

Finished in 0.73667 seconds
30 examples, 5 failures

Failed examples:

rspec ./spec/sprockets-sass_spec.rb:227 # Sprockets::Sass adds the #asset_path helper
rspec ./spec/sprockets-sass_spec.rb:240 # Sprockets::Sass adds the #image_path helper
rspec ./spec/sprockets-sass_spec.rb:253 # Sprockets::Sass adds the #asset_data_uri helper
rspec ./spec/sprockets-sass_spec.rb:260 # Sprockets::Sass mirrors Compass's #image_url helper
rspec ./spec/sprockets-sass_spec.rb:271 # Sprockets::Sass mirrors Sass::Rails's #asset_path helpers
rake aborted!
/Users/mgrosser/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -S rspec ./spec/sprockets-sass_spec.rb failed

Tasks: TOP => default => spec
(See full trace by running task with --trace)
  PATH
  remote: .
  specs:
    sprockets-sass (0.8.0)
      sprockets (~> 2.0)
      tilt (~> 1.1)

GEM
  remote: http://rubygems.org/
  specs:
    appraisal (0.4.1)
      bundler
      rake
    chunky_png (1.2.5)
    compass (0.12.1)
      chunky_png (~> 1.2)
      fssm (>= 0.2.7)
      sass (~> 3.1)
    diff-lcs (1.1.3)
    fssm (0.2.9)
    hike (1.2.1)
    multi_json (1.3.6)
    rack (1.4.1)
    rake (0.9.2.2)
    rspec (2.10.0)
      rspec-core (~> 2.10.0)
      rspec-expectations (~> 2.10.0)
      rspec-mocks (~> 2.10.0)
    rspec-core (2.10.1)
    rspec-expectations (2.10.0)
      diff-lcs (~> 1.1.3)
    rspec-mocks (2.10.1)
    sass (3.1.19)
    sprockets (2.4.3)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-helpers (0.4.0)
      sprockets (~> 2.0)
    test-construct (1.2.0)
    tilt (1.3.3)

PLATFORMS
  ruby

DEPENDENCIES
  appraisal (~> 0.4)
  compass (~> 0.11)
  rake
  rspec (~> 2.6)
  sass (~> 3.1)
  sprockets-helpers (~> 0.3)
  sprockets-sass!
  test-construct (~> 1.2)

I always check in the Gemfile.lock to prevents such issues/uncertanties :)

petebrowne commented 12 years ago

I'm still not able to reproduce this, even with your Gemfile.lock. If you find the solution to the problem, please let me know.