Sha256: 7d3da36527eb51096c50846d1e61ad74d67dd8cbad88d1ec56e0389b6f5a5ba0
Contents?: true
Size: 877 Bytes
Versions: 2
Compression:
Stored size: 877 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) describe AutoprefixerRails do it "should process CSS" do css = DIR.join('app/app/assets/stylesheets/test.css').read AutoprefixerRails.compile(css).should be_a(String) end it "should process CSS for selected browsers" do css = DIR.join('app/app/assets/stylesheets/test.css').read AutoprefixerRails.compile(css, ['chrome 25']).should == PREFIXED end it "should integrate with Sprockets" do assets = Sprockets::Environment.new assets.append_path(DIR.join('app/app/assets/stylesheets')) AutoprefixerRails.install(assets, ['chrome 25']) assets['test.css'].to_s.should == PREFIXED end it "should inspect" do inspect = AutoprefixerRails.compiler(['chrome 25']).inspect inspect.should =~ /Browsers:\n Chrome: 25\n\n/ inspect.should =~ / transition: webkit/ end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
autoprefixer-rails-0.6.20130721 | spec/autoprefixer_spec.rb |
autoprefixer-rails-0.6.20130716 | spec/autoprefixer_spec.rb |