test_sweet 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_sweet/screenshotting_steps.rb +11 -3
- data/lib/test_sweet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d096735beb40a291d17639a5db278ecb16e7103b
|
4
|
+
data.tar.gz: 83c3630b11f0ad74d67dabf724322e05bf9bdaca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 395a3b69bc3896efc56cedb3812fc45d896cb1b96469d50b943116f910d4655db708b67d5d13bb263f28894e2d41289e1a015703542ee4171df88414852d390c
|
7
|
+
data.tar.gz: a5e6460f82cd9b28b20f88406ce1d71c8b0263bf85ed41a947271ef2a68022d51e99e5ffaf7fd55d1b01a673f44c968cf98aed22613a439e2c26b012763befab
|
@@ -1,6 +1,14 @@
|
|
1
|
+
Then /^the screen should match "([^\"]*)" with fuzz factor of (\d+)$/ do |template, fuzz|
|
2
|
+
step %~the screen should match "#{template}" with fuzz factor of #{fuzz} with 10 max attempts~
|
3
|
+
end
|
4
|
+
|
1
5
|
Then /^the screen should match "([^\"]*)"$/ do |template|
|
2
|
-
|
6
|
+
step %~the screen should match "#{template}" with fuzz factor of 0 with 10 max attempts~
|
7
|
+
end
|
8
|
+
|
9
|
+
Then(/^the screen should match "([^\"]*)" with fuzz factor of (\d+) with (\d+) max attempts$/) do |name, fuzz, max_attempts|
|
10
|
+
|
11
|
+
screenshotter = Juxtapose::Screenshotter.new(self, name, fuzz.to_i, File.expand_path('./'))
|
3
12
|
|
4
|
-
max_attempts
|
5
|
-
expect(screenshotter.attempt_verify(max_attempts)).to eq(true)
|
13
|
+
expect(screenshotter.attempt_verify(max_attempts.to_i)).to eq(true)
|
6
14
|
end
|
data/lib/test_sweet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_sweet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Larrabee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appium_lib
|