Sha256: 108540b9d1067030c4560119fcf7b8a2ce186dbb62fed2f105ee644d62f35e00

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

require 'spec_helper'
require 'jslint'

%x[which java]
if $? == 0 # Only run the JS Lint test if Java is installed
  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
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
active_administration-0.0.3 spec/integration/javascript_spec.rb
activeadministration-0.0.2 spec/integration/javascript_spec.rb
active_administration-0.0.2 spec/integration/javascript_spec.rb
activeadministration-0.0.1 spec/integration/javascript_spec.rb
active_administration-0.0.1 spec/integration/javascript_spec.rb