selenium_shots 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,8 +15,8 @@ module SeleniumShots::Command
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def get_api_key_from_host
|
18
|
-
RestClient.post 'http://seleniumshots.
|
19
|
-
|
18
|
+
RestClient.post 'http://seleniumshots.com/selenium_tests/get_api_key', :user_session => { :email => @api_key_hash[0],
|
19
|
+
:password => @api_key_hash[1]}
|
20
20
|
end
|
21
21
|
|
22
22
|
def api_key_file
|
@@ -11,7 +11,7 @@ SeleniumConfig = OpenStruct.new(YAML.load_file("#{RAILS_ROOT}/config/selenium_sh
|
|
11
11
|
|
12
12
|
#activeresource models
|
13
13
|
class SeleniumTest < ActiveResource::Base
|
14
|
-
self.site = "http://seleniumshots.
|
14
|
+
self.site = "http://seleniumshots.com"
|
15
15
|
self.user = SeleniumConfig.api_key
|
16
16
|
end
|
17
17
|
|
@@ -54,7 +54,8 @@ class SeleniumShots < ActionController::IntegrationTest
|
|
54
54
|
def setup
|
55
55
|
if(not self.class.expected_test_count)
|
56
56
|
self.class.expected_test_count = (self.class.instance_methods.reject{|method| method[0..3] != 'test'}).length
|
57
|
-
if
|
57
|
+
if SeleniumConfig.mode == "local"
|
58
|
+
FileUtils.rm(pid_file) if File.exists?(pid_file)
|
58
59
|
IO.popen("selenium_shots_local_server start 2>&1")
|
59
60
|
sleep(2)
|
60
61
|
end
|
@@ -116,7 +117,7 @@ class SeleniumShots < ActionController::IntegrationTest
|
|
116
117
|
:port => PORT,
|
117
118
|
:browser => browser_spec,
|
118
119
|
:url => SeleniumConfig.default_browser_url,
|
119
|
-
:timeout_in_second =>
|
120
|
+
:timeout_in_second => 200)
|
120
121
|
@browser.start_new_browser_session
|
121
122
|
begin
|
122
123
|
block.call(@browser)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kyle J. Ginavan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-04-
|
18
|
+
date: 2010-04-23 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|