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

Version Path
autoprefixer-rails-0.8.20131213 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131209 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131205 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131104 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131029 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131020 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131017 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131015 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131009 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131007 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131006 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20131001 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20130923 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20130919 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20130911 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20130906 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20130903 spec/autoprefixer_spec.rb
autoprefixer-rails-0.8.20130902 spec/autoprefixer_spec.rb
autoprefixer-rails-0.7.20130824 spec/autoprefixer_spec.rb
autoprefixer-rails-0.7.20130810 spec/autoprefixer_spec.rb