Sha256: 357dd39393c41b0d515552b6fe3471340a6e163c83f5c5e1c4ac09b57bc92d22

Contents?: true

Size: 715 Bytes

Versions: 6

Compression:

Stored size: 715 Bytes

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 inspect" do
    inspect = AutoprefixerRails.inspect(['chrome 25'])
    inspect.should =~ /Browsers:\n  Chrome: 25\n\n/
    inspect.should =~ /  transition: webkit/
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
autoprefixer-rails-0.5.20130629 spec/autoprefixer_spec.rb
autoprefixer-rails-0.5.20130626 spec/autoprefixer_spec.rb
autoprefixer-rails-0.5.20130625 spec/autoprefixer_spec.rb
autoprefixer-rails-0.5.20130617 spec/autoprefixer_spec.rb
autoprefixer-rails-0.5.20130616 spec/autoprefixer_spec.rb
autoprefixer-rails-0.5.20130615 spec/autoprefixer_spec.rb