Sha256: d8a337558dce32ac0c19fae453274ec470c8ac64938bfcb32101ebb2ad121cb6
Contents?: true
Size: 851 Bytes
Versions: 28
Compression:
Stored size: 851 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) describe AutoprefixerRails do it "process CSS" do css = DIR.join('app/app/assets/stylesheets/test.css').read AutoprefixerRails.compile(css).should be_a(String) end it "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 "integrates 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 "inspects" do inspect = AutoprefixerRails.compiler(['chrome 25']).inspect inspect.should =~ /Browsers:\n Chrome: 25\n\n/ inspect.should =~ / transition: webkit/ end end
Version data entries
28 entries across 28 versions & 1 rubygems