Sha256: 9b278d17b447ada88221704c6a0e407b28bb9e39112c019ca5549e5636627f90
Contents?: true
Size: 462 Bytes
Versions: 20
Compression:
Stored size: 462 Bytes
Contents
require 'rails_helper' require 'jslint' %x[which java] if $? == 0 # Only run the JS Lint test if Java is installed describe "Javascript", :type => :request 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 end
Version data entries
20 entries across 20 versions & 3 rubygems