eyes_selenium 2.23.0 → 2.24.0

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: 9f76674e01e0beca0386b49e0fa7a5aa2850d216
4
- data.tar.gz: cce978a941208c894fee9820ede64ba44719bc1b
3
+ metadata.gz: e4efec3b3763869248b985c68efc0a932b784724
4
+ data.tar.gz: a0b3c5595ecd7bde50bf5f3936ce64c9963590f1
5
5
  SHA512:
6
- metadata.gz: 280a0e4e48536f6f3377f93621acaf7f4e06c0de434f7f161c4fd9606c38526a66ee0ca7ba13214045b1a60c97372175c99d6d3ee6407258af3d31ab0e26a930
7
- data.tar.gz: eac4aaf343c08ec9bab1990a3487077910090c27dbd32d671476b9f3f7916958906159457f0c22fe43af3c9a9661056139e9d386e6506acbac00d9e274754b4a
6
+ metadata.gz: 098e0d286171c2b2c302030bb3d15d708e542168176ecd700829d36d6f992802d9b10b4c3b28b7c63540518dc21c673488bffb0d4c860d777d4461ab67bd8af9
7
+ data.tar.gz: 88030ccc81bc0aadd43667162e65b18c9ab5a369fd347d8f706e7f00c88098352a1d4ea5e2cbb75576f339695cd2f045457dcfa0994e9b4ae4dd09ceab4c67cb
@@ -65,8 +65,7 @@ module Applitools::Base::ServerConnector
65
65
  raise Applitools::EyesError.new("Request failed: #{res.status}") unless res.success?
66
66
 
67
67
  response = Oj.load(res.body)
68
- response.delete('$id')
69
- Applitools::Base::TestResults.new(*response.values)
68
+ Applitools::Base::TestResults.new(response)
70
69
  end
71
70
 
72
71
  private
@@ -1,26 +1,19 @@
1
1
  module Applitools::Base
2
2
  class TestResults
3
3
  attr_accessor :is_new, :url
4
- attr_reader :steps, :matches, :mismatches, :missing, :exact_matches, :strict_matches, :content_matches,
5
- :layout_matches, :none_matches
4
+ attr_reader :steps, :matches, :mismatches, :missing
6
5
 
7
- def initialize(steps = 0, matches = 0, mismatches = 0, missing = 0, exact_matches = 0, strict_matches = 0,
8
- content_matches = 0, layout_matches = 0, none_matches = 0)
9
- @steps = steps
10
- @matches = matches
11
- @mismatches = mismatches
12
- @missing = missing
13
- @exact_matches = exact_matches
14
- @strict_matches = strict_matches
15
- @content_matches = content_matches
16
- @layout_matches = layout_matches
17
- @none_matches = none_matches
6
+ def initialize(results = {})
7
+ @steps = results.fetch('steps', 0)
8
+ @matches = results.fetch('matches', 0)
9
+ @mismatches = results.fetch('mismatches', 0)
10
+ @missing = results.fetch('missing', 0)
18
11
  @is_new = nil
19
12
  @url = nil
20
13
  end
21
14
 
22
15
  def passed?
23
- !is_new && mismatches == 0 && missing == 0
16
+ !is_new && !(mismatches > 0) && !(missing > 0)
24
17
  end
25
18
  alias_method :is_passed, :passed?
26
19
 
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '2.23.0'.freeze
2
+ VERSION = '2.24.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyes_selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.0
4
+ version: 2.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-30 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver