Sha256: 7455723e4455e843de31c239704d8fbbe2fe737a9b8a784e27728ad7fbfa6fad
Contents?: true
Size: 807 Bytes
Versions: 6
Compression:
Stored size: 807 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-transition: all 1s; transition: all 1s; }" end it "has safe mode" do get :test, file: 'wrong' expect(response).to be_success expect(response.body).to match /a \{[^}]+\}/ 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
6 entries across 6 versions & 1 rubygems