Sha256: f4c5c2c131ae9b8f593f0d09e1fad969035e5a932294d5335954783337299fde

Contents?: true

Size: 451 Bytes

Versions: 78

Compression:

Stored size: 451 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

78 entries across 78 versions & 6 rubygems

Version Path
lalala-4.0.0.dev.74 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.73 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.72 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.71 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.66 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.65 vendor/deps/active_admin/spec/integration/javascript_spec.rb
activeadmin-0.6.0 spec/integration/javascript_spec.rb
lalala-4.0.0.dev.64 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.63 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.62 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.61 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.60 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.59 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.58 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.57 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.56 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.50 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.46 vendor/deps/active_admin/spec/integration/javascript_spec.rb
activeadmin-0.5.1 spec/integration/javascript_spec.rb
activeadmin-0.5.0 spec/integration/javascript_spec.rb