Sha256: 0e6484984935f84060344f2b5f0195b4eca4dd891b264151f83035a195677a40
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 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 clear_css = response.body.gsub("\n", " ").squeeze(" ").strip expect(clear_css).to eq "a { -webkit-mask: none; mask: none; }" end if Sprockets::Context.instance_methods.include?(:evaluate) it 'supports evaluate' do get :test, file: 'evaluate' expect(response).to be_success clear_css = response.body.gsub("\n", ' ').squeeze(' ').strip expect(clear_css).to eq 'a { -webkit-mask: none; mask: none }' end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autoprefixer-rails-6.3.3.1 | spec/rails_spec.rb |