Sha256: 246709371ccc7c4dd3e63ab44e1990ab233964609d914cdab5b71fe561ba1ca0
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
require 'spec_helper' describe 'Sprockets integration' do let(:assets) { Sprockets::Environment.new } before do assets.append_path(Pathname(__FILE__).dirname.join('../dummy/app/assets/stylesheets')) end context 'with default configuration' do before { RailsPixrem.install(assets) } it 'works with Sprockets' do assets['test.css'].to_s.should == "i {\n" + " padding: 16px;\n" + " padding: 1rem\n" + "}\n" end end context 'when additional configuration passed' do before { RailsPixrem.install(assets, root_value: '40px') } it 'honors root value' do assets['test.css'].to_s.should == "i {\n" + " padding: 40px;\n" + " padding: 1rem\n" + "}\n" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-pixrem-0.0.1 | spec/rails-pixrem/sprockets_spec.rb |