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.128 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.126 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.125 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.124 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.123 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.118 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.116 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.114 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.113 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.111 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.109 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.107 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.94 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.92 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.90 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.84 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.80 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.79 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.78 vendor/deps/active_admin/spec/integration/javascript_spec.rb
lalala-4.0.0.dev.77 vendor/deps/active_admin/spec/integration/javascript_spec.rb