Rspec::Lintable
Ensure your controllers are returning "valid" Javascript responses
Usage
describe "#show" do
before { get :show, format: :js }
it { should be_lintable }
end
Installation
Add the gem to your test
group of your Gemfile
and it will automatically be loaded into your RSpec runtime!
# Gemfile
gem 'rspec-lintable', group: :test
Configuration
All options and configuration are done via the standard Jshint .jshintrc configuration file.
Contributing
Interested in contributing? Review the project contribution guidelines and get started!
Patches are always welcome and thank you to all project contributors!