Skip to content

Instantly share code, notes, and snippets.

@mattvague
Created July 4, 2011 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattvague/1064056 to your computer and use it in GitHub Desktop.
Save mattvague/1064056 to your computer and use it in GitHub Desktop.
Javascript Lint spec
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