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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c452fde1b462a27c6d7274cf2aa12ff2009bdf6
4
- data.tar.gz: 22bc2dca5482f448675e143cfa60de50aef5d979
3
+ metadata.gz: d096735beb40a291d17639a5db278ecb16e7103b
4
+ data.tar.gz: 83c3630b11f0ad74d67dabf724322e05bf9bdaca
5
5
  SHA512:
6
- metadata.gz: 58bb3bb908be088954cfaf0c761778cc22da00df5e888d886c9d55ee5ea256d41537ae6c426fc43bb0316e05b5ac23c50597397a4ecfa657f8d2da8ca2179001
7
- data.tar.gz: 35872077ace5d00eb0337f7c3c3428da0cd089ba234de4f1c573defa628ab2d5f966f66eac75c3e0f622c5432910aac141ba2af856b87361e86944b98bdb2ef3
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
- screenshotter = Juxtapose::Screenshotter.new(self, template, 0, File.expand_path('./'))
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 = 10
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
@@ -1,3 +1,3 @@
1
1
  class TestSweet
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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-08-06 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib