Class: Capybara::JavaScriptLint::TestCase

Inherits:
ActionDispatch::IntegrationTest
  • Object
show all
Includes:
ActionView::Helpers::JavaScriptHelper
Defined in:
lib/capybara/java_script_lint/test_case.rb

Class Method Summary collapse

Class Method Details

.check(path) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/capybara/java_script_lint/test_case.rb', line 9

def self.check(path)
  options = @options || {}
  source = self.jslint_source
  test "JSLINT #{path}" do
    assert_jslint(path, options, source)
  end
end

.options(options) ⇒ Object



17
18
19
# File 'lib/capybara/java_script_lint/test_case.rb', line 17

def self.options(options)
  @options = options
end