spec/sprockets-sass_spec.rb in sprockets-sass-1.0.2 vs spec/sprockets-sass_spec.rb in sprockets-sass-1.0.3
- old
+ new
@@ -1,12 +1,15 @@
require 'spec_helper'
describe Sprockets::Sass do
before :each do
- @root = create_construct
+ @root = create_construct
@assets = @root.directory 'assets'
- @env = Sprockets::Environment.new @root.to_s
+ @env = Sprockets::Environment.new @root.to_s
@env.append_path @assets.to_s
+ @env.register_postprocessor 'text/css', :fail_postprocessor do |context, data|
+ data.gsub /@import/, 'fail engine'
+ end
end
after :each do
@root.destroy!
end