saucelabs-adapter 0.8.19 → 0.8.22

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.19
1
+ 0.8.22
@@ -27,7 +27,7 @@ local_jsunit:
27
27
  # "Linux" "firefox" "3."
28
28
  saucelabs: &saucelabs
29
29
  <<: *common
30
- test_framework: webrat
30
+ test_framework: :webrat
31
31
  # URL of Selenium RC server:
32
32
  selenium_server_address: "saucelabs.com"
33
33
  selenium_server_port: "4444"
@@ -9,7 +9,7 @@ if defined?(Spec::Runner)
9
9
  end
10
10
 
11
11
  selenium_config = SaucelabsAdapter::SeleniumConfig.new(ENV['SELENIUM_ENV'])
12
- if selenium_config.test_framework == :webrat
12
+ if selenium_config.test_framework.to_sym == :webrat
13
13
  Spec::Runner.configure do |config|
14
14
  config.before :all do
15
15
  if selenium_config.start_tunnel? and config.saucelabs_tunnel.nil?
@@ -155,7 +155,7 @@ module SaucelabsAdapter
155
155
  # We have been given a port range. Find an unused one.
156
156
  port = find_unused_port(application_address, ($1.to_i)..($2.to_i))
157
157
  @configuration['application_port'] = port
158
- @configuration['tunnel_to_localhost_port'] = port if test_framework == :webrat
158
+ @configuration['tunnel_to_localhost_port'] = port if test_framework.to_sym == :webrat
159
159
  # Pass this calculated value on to any other instances of SeleniumConfig created
160
160
  ENV['SAUCELABS_ADAPTER_APPLICATION_PORT'] = port.to_s
161
161
  end
@@ -44,6 +44,12 @@ describe "SeleniumConfig" do
44
44
  @selenium_config.selenium_browser_key.should == "*chrome /Applications/Firefox.app/Contents/MacOS/firefox-bin"
45
45
  end
46
46
  end
47
+
48
+ describe "#test_framework" do
49
+ it "should parse symbols" do
50
+ @selenium_config.test_framework.should == :webrat
51
+ end
52
+ end
47
53
 
48
54
  describe "#configure_polonium" do
49
55
  before do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucelabs-adapter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 19
10
- version: 0.8.19
9
+ - 22
10
+ version: 0.8.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Felkins, Chad Woolley, Sam Pierson, Nate Clark
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-16 00:00:00 -07:00
18
+ date: 2010-09-13 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency