Created
July 4, 2011 23:33
-
-
Save mattvague/1064056 to your computer and use it in GitHub Desktop.
Javascript Lint spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
require 'jslint' | |
describe "Javascript" do | |
before do | |
@lint = JSLint::Lint.new( | |
:paths => ['public/javascripts/**/*.js'], | |
:exclude_paths => ['public/javascripts/vendor/**/*.js'], | |
:config_path => 'spec/support/jslint.yml' | |
) | |
end | |
it "should not have any syntax errors" do | |
@lint.run | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment