Sha256: e254d13f084d4eb5efd6b6eba829358b93cbae4a9fe9284e813a6cc0f8f2bf28
Contents?: true
Size: 1.14 KB
Versions: 13
Compression:
Stored size: 1.14 KB
Contents
require File.expand_path('../spec_helper', __FILE__) describe AutoprefixerRails do 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 has dirs whitelist" do assets = Sprockets::Environment.new assets.append_path(DIR.join('app/')) dirs = [DIR.join('app/vendor')] AutoprefixerRails.install(assets, ['chrome 25'], :dirs => dirs) assets['vendor/assets/stylesheets/foreign.css'].to_s.should == ".f {\n -webkit-transition: none;\n transition: none\n}" assets['app/assets/stylesheets/test.css'].to_s.should == "a { transition: all 1s }\n" end it "should inspect" do inspect = AutoprefixerRails.inspect(['chrome 25']) inspect.should =~ /Browsers:\n Chrome 25\n\n/ inspect.should =~ / transition: webkit/ end end
Version data entries
13 entries across 13 versions & 1 rubygems