Sha256: eaef8eee07fc5784b8eb61895ffebb4417504ee26ba4ab69b04d355fcd3fc93d

Contents?: true

Size: 652 Bytes

Versions: 3

Compression:

Stored size: 652 Bytes

Contents

require 'jasmine'
require 'testingbot/tunnel'

module TestingBot
	module Jasmine

		class Driver < ::Jasmine::SeleniumDriver
			attr_reader :http_address, :driver, :browser

			def initialize(browser, http_address)
				tunnel = TestingBot::Tunnel.new(TestingBot.get_config[:tunnel_options] || {})
	   			tunnel.start

				@browser = browser
				@http_address = http_address
				@driver = TestingBot::SeleniumWebdriver.new({ :browserName => browser, :name => "Jasmine Test" })
			end
		end
	end
end

module Jasmine
	class Config
		def start
			@client = TestingBot::Jasmine::Driver.new(browser, "#{jasmine_host}:3001/")
			@client.connect
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
testingbot-0.1.7 lib/testingbot/jasmine.rb
testingbot-0.1.6 lib/testingbot/jasmine.rb
testingbot-0.1.5 lib/testingbot/jasmine.rb