sauce 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sauce/capybara.rb +3 -1
- data/lib/sauce/version.rb +1 -1
- data/spec/sauce/capybara_spec.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGMxNjkzMzRmZDEyYmNmZTZkZWYxMWIwYzIxNjkzYjA4MzE1NmM0MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzU3NmRmMWNjNTE2ZjhlZmYyYzQ0MGJkYzFmZjQ1MzA0ODM3ZWMyZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2JjMmJiNDFhYmE5NGM4OWM5NDM0ZTI0NzExMzUwNTNjZDIxY2Y0YzdiNWU4
|
10
|
+
Y2M4OGM3Y2FhNGFhMjYyMTRmNjYzZmI1YmFkNDllNmM5ZjIzZTJhNDU5MWU5
|
11
|
+
OWQxNDJlZWQ5OGM3NmFjNzJjNTJhYjBmNTM2OTdiMTVhYWJjODE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzI0NGVkYjg4ODJiMDljZWI0YmZkZTM3YjU2ZDlkZDFmNzQ4N2QwOGJjYjgz
|
14
|
+
YTI0MTM4ODNjYzM2MzFiNWY1YTI2MDUyNDJkZmZiNDZhNDhkMDdhZWMyY2U5
|
15
|
+
MmI4NzI4M2U5NDg1MzU1MjkxZTM1YzVkZmI4MmFiZTFjNmU1YzE=
|
data/lib/sauce/capybara.rb
CHANGED
@@ -115,7 +115,9 @@ module Sauce
|
|
115
115
|
|
116
116
|
def self.configure_capybara
|
117
117
|
::Capybara.configure do |config|
|
118
|
-
|
118
|
+
if Sauce::Config.new[:start_local_application]
|
119
|
+
config.server_port = Sauce::Config.get_application_port
|
120
|
+
end
|
119
121
|
begin
|
120
122
|
#config.always_include_port = true
|
121
123
|
rescue
|
data/lib/sauce/version.rb
CHANGED
data/spec/sauce/capybara_spec.rb
CHANGED
@@ -329,6 +329,23 @@ describe Sauce::Capybara do
|
|
329
329
|
used_port = Capybara.current_session.driver.rack_server.port
|
330
330
|
Sauce::Config::POTENTIAL_PORTS.should include used_port
|
331
331
|
end
|
332
|
+
|
333
|
+
describe "when start_local_application is false" do
|
334
|
+
before do
|
335
|
+
@start_local_application = Sauce::Config.new[:start_local_application]
|
336
|
+
end
|
337
|
+
|
338
|
+
after do
|
339
|
+
Sauce.config do |c|
|
340
|
+
c[:start_local_application] = @start_local_application
|
341
|
+
end
|
342
|
+
end
|
343
|
+
it "should not use Sauce Connect ports if start_local_application is true" do
|
344
|
+
Sauce.config { |c| c[:start_local_application] = false }
|
345
|
+
reset_capybara(2.0)
|
346
|
+
Capybara.server_port.should eq nil
|
347
|
+
end
|
348
|
+
end
|
332
349
|
end
|
333
350
|
|
334
351
|
def reset_capybara(capy_version)
|
@@ -353,6 +370,7 @@ describe Sauce::Capybara do
|
|
353
370
|
config.visible_text_only = false
|
354
371
|
config.automatic_reload = true
|
355
372
|
config.ignore_hidden_elements = true
|
373
|
+
config.server_port = nil
|
356
374
|
end
|
357
375
|
|
358
376
|
config.run_server = true
|
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: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Lacey
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2014-03-
|
17
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rspec
|