Sha256: 595635a1783ebe5af748ab1fcae548b914d22f37c2c41e191f51718f72eb11fa
Contents?: true
Size: 820 Bytes
Versions: 9
Compression:
Stored size: 820 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 it "has safe mode" do get :test, file: 'wrong' expect(response).to be_success expect(response.body).to eq "a {\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
9 entries across 9 versions & 1 rubygems