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.
@@ -7,7 +7,7 @@ class SeleniumShots::Client
7
7
 
8
8
  attr_reader :host, :api_key
9
9
 
10
- def initialize(api_key, host='seleniumshots.heroku.com')
10
+ def initialize(api_key, host='seleniumshots.com')
11
11
  @api_key = api_key
12
12
  @host = host
13
13
  end
@@ -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.heroku.com/selenium_tests/get_api_key', :user_session => { :email => @api_key_hash[0],
19
- :password => @api_key_hash[1]}
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.heroku.com"
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 !File.exists?(pid_file) && SeleniumConfig.mode == "local"
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)
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
- - 0
9
- version: 0.2.0
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-20 00:00:00 -05:00
18
+ date: 2010-04-23 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency