percy-capybara 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce89ff774e6942093366dca81216bf16f2d8beec
|
4
|
+
data.tar.gz: 77180c805651562a58afe775006329ad7bff891b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 852108bcc28aa11bb444a9803d3866ad79d00603c38ec740035bba0f96f5625e205b7cf2fc992fbf7c329d72415c41a5ba4b4bcd84259e9acf01500f6e445ba7
|
7
|
+
data.tar.gz: 40e0ad67a10734c24d1bbd3433056cc11e5e6647051d9d2802e8dc03d5c8305ffd627fd9724b88d36c942f2f805988bcb734ff427292e3f9b29b19c72f724300
|
@@ -144,17 +144,10 @@ module Percy
|
|
144
144
|
|
145
145
|
# A simplified version of Find.find that only returns files and follows symlinks.
|
146
146
|
def _find_files(*paths)
|
147
|
-
paths.flatten
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if path.file?
|
152
|
-
files << path.to_s
|
153
|
-
else
|
154
|
-
files = files.concat(_find_files(path.children))
|
155
|
-
end
|
156
|
-
end
|
157
|
-
files
|
147
|
+
paths.flatten.map do |path|
|
148
|
+
path = Pathname.new(path)
|
149
|
+
path.file? ? [path.to_s] : _find_files(path.children)
|
150
|
+
end.flatten
|
158
151
|
end
|
159
152
|
|
160
153
|
def _uri_join(*paths)
|
@@ -125,8 +125,11 @@ RSpec.describe Percy::Capybara::Client::Builds do
|
|
125
125
|
end
|
126
126
|
end
|
127
127
|
describe '#finalize_current_build' do
|
128
|
+
let(:build_data) do
|
129
|
+
{'data' => {'id' => 123, 'attributes' => {'web-url' => 'http://localhost/'}}}
|
130
|
+
end
|
131
|
+
|
128
132
|
it 'finalizes the current build' do
|
129
|
-
build_data = {'data' => {'id' => 123}}
|
130
133
|
expect(capybara_client.client).to receive(:create_build).and_return(build_data)
|
131
134
|
capybara_client.initialize_build
|
132
135
|
|
@@ -139,7 +142,6 @@ RSpec.describe Percy::Capybara::Client::Builds do
|
|
139
142
|
end.to raise_error(Percy::Capybara::Client::BuildNotInitializedError)
|
140
143
|
end
|
141
144
|
it 'safely handles connection errors' do
|
142
|
-
build_data = {'data' => {'id' => 123}}
|
143
145
|
expect(capybara_client.client).to receive(:create_build).and_return(build_data)
|
144
146
|
capybara_client.initialize_build
|
145
147
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: percy-client
|