Rspec::RespectSelectorLimit

Ensure your CSS files do not break in Old IE

Installation

Add this line to your application's Gemfile:

gem 'rspec-respect_selector_limit'

Usage

require 'rails_helper'

it 'validates application.css' do
  expect('application.css').to respect_selector_limit
end

# (optional) validate all configured CSS files
it 'validates all precompiled CSS files' do
  expect(precompiled_css_files).to respect_selector_limit
end

Contributing

  1. Fork it ( https://github.com/wireframe/rspec-respect_selector_limit/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request