Sha256: 5c7a60b633213b24b8230a642c07552890c8170913d58473053d8fe1d094df90

Contents?: true

Size: 684 Bytes

Versions: 11

Compression:

Stored size: 684 Bytes

Contents

require_relative 'spec_helper'

describe CssController, type: :controller do
  before :all do
    cache = Rails.root.join('tmp/cache')
    cache.rmtree if cache.exist?
  end

  it "integrates with Rails and Sass" do
    get :test, file: 'sass'
    expect(response).to be_success
    expect(response.body).to eq "a {\n" +
                                "  -webkit-transition: all 1s;\n" +
                                "  transition: all 1s; }\n"
  end
end

describe 'Rake task' do
  it "shows debug" do
    info = `cd spec/app; bundle exec rake autoprefixer:info`
    expect(info).to match(/Browsers:\n  Chrome: 25\n\n/)
    expect(info).to match(/  transition: webkit/)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
autoprefixer-rails-2.2.0.20140804 spec/rails_spec.rb
autoprefixer-rails-2.2.0.20140727 spec/rails_spec.rb
autoprefixer-rails-2.1.1.20140710 spec/rails_spec.rb
autoprefixer-rails-2.1.0.20140628 spec/rails_spec.rb
autoprefixer-rails-2.0.2.20140628 spec/rails_spec.rb
autoprefixer-rails-2.0.1.20140626 spec/rails_spec.rb
autoprefixer-rails-2.0.0.20140622 spec/rails_spec.rb
autoprefixer-rails-1.3.1.20140619 spec/rails_spec.rb
autoprefixer-rails-1.3.0.20140619 spec/rails_spec.rb
autoprefixer-rails-1.2.0.20140609 spec/rails_spec.rb
autoprefixer-rails-1.1.20140605 spec/rails_spec.rb