sauce 2.4.6 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTgwY2IyMTZlNDU1ODM2OTkxMzVjNjE2MzQzMThhMzE4MDhjNDA0NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTMwODQxYjk2ZjM0YWViZWFjZjkzOTQxMDFlN2VkZThhZGEwYzliOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWVlMzk2NjMzYTNlYTZjZGIzY2E4MWZhOTE1MTE0YzQwMzk3ZmIyNjFlYzQ4
|
10
|
+
M2ZmMjU3MzAyODViOGIyMWY2NWExOTBkNDc1NDIxZDNmY2U0OWY0MGEyOTMy
|
11
|
+
Y2JhZDdmNTBlZjBiZmMzYzkxNWM0ZWRmMzljNmZlMzdjMDBjMDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzA4Yjk5MmFiNTQ5Y2IwZGY0N2I5N2NjMjExNjI3YTIyZDIwOGVkYWEzMzg4
|
14
|
+
MjJkMmU5ODkwNjU3ZDlhMGM3OTYzNWUzMGU1NDkwODZhYjZiMTdhNGQ1YWMx
|
15
|
+
OTIwMDY4YzAwMmJiY2MxZDM2NThhMDg5YmUwNGFkNmNmOTZhNzk=
|
data/lib/sauce/integrations.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'sauce/utilities'
|
2
|
+
require "sauce_whisk"
|
2
3
|
|
3
4
|
begin
|
4
5
|
require 'spec'
|
@@ -42,6 +43,7 @@ begin
|
|
42
43
|
:browser_version => version,
|
43
44
|
:job_name => description})
|
44
45
|
super(*args)
|
46
|
+
|
45
47
|
@selenium.stop
|
46
48
|
end
|
47
49
|
end
|
@@ -81,6 +83,7 @@ begin
|
|
81
83
|
|
82
84
|
begin
|
83
85
|
the_test.run
|
86
|
+
SauceWhisk::Jobs.change_status @selenium.session_id, example.exception.nil?
|
84
87
|
ensure
|
85
88
|
@selenium.stop
|
86
89
|
Sauce.driver_pool.delete Thread.current.object_id
|
@@ -183,7 +186,10 @@ module Sauce
|
|
183
186
|
:job_name => my_name.to_s})
|
184
187
|
@browser = Sauce::Selenium2.new(options)
|
185
188
|
Sauce.driver_pool[Thread.current.object_id] = @browser
|
189
|
+
|
186
190
|
super(*args, &blk)
|
191
|
+
|
192
|
+
SauceWhisk::Jobs.change_status @browser.session_id, passed?
|
187
193
|
@browser.stop
|
188
194
|
Sauce.driver_pool.delete Thread.current.object_id
|
189
195
|
end
|
@@ -226,14 +232,18 @@ if defined?(ActiveSupport::TestCase)
|
|
226
232
|
end
|
227
233
|
|
228
234
|
begin
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
235
|
+
if Object.const_defined? "Test"
|
236
|
+
if Test.const_defined? "Unit"
|
237
|
+
require 'test/unit/testcase'
|
238
|
+
module Sauce
|
239
|
+
class TestCase < Test::Unit::TestCase
|
240
|
+
include SeleniumForTestUnit
|
241
|
+
extend SeleniumForTestUnitClassMethods
|
242
|
+
|
243
|
+
# Placeholder so test/unit ignores test cases without any tests.
|
244
|
+
def default_test
|
245
|
+
end
|
246
|
+
end
|
237
247
|
end
|
238
248
|
end
|
239
249
|
end
|
data/lib/sauce/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "Sauce::Config", :sauce => true do
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
it "should have rspec in its tool set", :sauce => true do
|
8
|
+
capabilities = Sauce.get_config.to_desired_capabilities
|
9
|
+
capabilities[:client_version].should include "Rspec"
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should not have test::unit in its tool set", :sauce => true do
|
13
|
+
capabilities = Sauce.get_config.to_desired_capabilities
|
14
|
+
capabilities[:client_version].should_not include "Test::Unit"
|
15
|
+
end
|
16
|
+
end
|
@@ -11,21 +11,13 @@ end
|
|
11
11
|
|
12
12
|
class IntegrationTest < Sauce::TestCase
|
13
13
|
|
14
|
-
# Called before every test method runs. Can be used
|
15
|
-
# to set up fixture information.
|
16
|
-
def setup
|
17
|
-
# Do nothing
|
18
|
-
end
|
19
|
-
|
20
|
-
# Called after every test method runs. Can be used to tear
|
21
|
-
# down fixture information.
|
22
|
-
|
23
|
-
def teardown
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
14
|
def test_testunit_is_set_in_sauce_config
|
28
15
|
capabilities = Sauce.get_config.to_desired_capabilities
|
29
16
|
assert_includes capabilities[:client_version], "Test::Unit"
|
30
17
|
end
|
18
|
+
|
19
|
+
def test_rspec_is_not_set_in_sauce_config
|
20
|
+
capabilities = Sauce.get_config.to_desired_capabilities
|
21
|
+
assert_not_includes capabilities[:client_version], "Rspec"
|
22
|
+
end
|
31
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Lacey
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-
|
16
|
+
date: 2013-06-02 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: capybara
|
@@ -155,6 +155,20 @@ dependencies:
|
|
155
155
|
- - ! '>='
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: 1.5.0
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: sauce_whisk
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - '='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: 0.0.3
|
165
|
+
type: :runtime
|
166
|
+
prerelease: false
|
167
|
+
version_requirements: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - '='
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: 0.0.3
|
158
172
|
description: A Ruby helper for running tests in Sauce Labs' browser testing cloud
|
159
173
|
service
|
160
174
|
email: help@saucelabs.com
|
@@ -180,6 +194,7 @@ files:
|
|
180
194
|
- lib/sauce.rb
|
181
195
|
- spec/cucumber_helper.rb
|
182
196
|
- spec/integration/connect_integration_spec.rb
|
197
|
+
- spec/integration/rspec/spec/integration_spec.rb
|
183
198
|
- spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
|
184
199
|
- spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
|
185
200
|
- spec/integration/rspec/spec/spec_helper.rb
|
@@ -221,6 +236,7 @@ summary: A Ruby helper for running tests in Sauce Labs
|
|
221
236
|
test_files:
|
222
237
|
- spec/cucumber_helper.rb
|
223
238
|
- spec/integration/connect_integration_spec.rb
|
239
|
+
- spec/integration/rspec/spec/integration_spec.rb
|
224
240
|
- spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
|
225
241
|
- spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
|
226
242
|
- spec/integration/rspec/spec/spec_helper.rb
|