Sha256: 2d36a35637c8011b34e250fab83c3a92bb5310b6ef1397eca864fbe4c7acfe73

Contents?: true

Size: 394 Bytes

Versions: 15

Compression:

Stored size: 394 Bytes

Contents

class JavaScriptTest::Browser
  def initialize(path)
    @path = path
  end
end

if JavaScriptTest::Browser.new('').macos?
  class JavaScriptTest::SafariBrowser
    def setup; end # no need to create new Browser, as open command automates this
    def visit(file)
      @path ||= 'Safari.app'
      `open #{file} -a #{@path} -g`
    end
    def setup; end # no need to destroy Browser
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
newjs-1.7.4 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.3.2 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.3.3 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.3.4 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.3.5 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.3.6 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.3.1 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.3.7 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.4.1 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.5.0 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.5.1 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.7.0 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.7.1 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.4.0 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb
newjs-1.7.2 rails_generators/javascript_test/templates/plugins/javascript_unittest/lib/autotest/javascript_test_ext.rb