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
it 'validates all precompiled CSS files' do
expect(precompiled_css_files).to respect_selector_limit
end
Contributing
- Fork it ( https://github.com/wireframe/rspec-respect_selector_limit/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request