capybara-ui 1.0.1 → 1.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: dcfb980e16d78b2a0cd122a4ab32c1255114dad4
4
- data.tar.gz: af7a72761816872bdd203da7f7004ce5fd1f5f14
3
+ metadata.gz: 3b1f43bb680838ae7f41cf171cde54c345f05a48
4
+ data.tar.gz: 98ad288f4091a38ead145285f369c2793f05900c
5
5
  SHA512:
6
- metadata.gz: 4c1daaea0cf723fd70bc1a060fb27d21eaa16fec209b2a6ae4fbce967ea6e0b80dc1739e1cf5c0bb22c14a9b25096b1af4f010c079a1db0cbd9ec436430878c5
7
- data.tar.gz: d1453fd8bbad4ed729805351535e8aefed1a3bdc8a1bd7e33da31f0f0722cef6fc00f78a44bf744cdbb7089a1de2c9dfbfa9be8d746868321e043154d7cace8f
6
+ metadata.gz: a7addeef03efa8fc90c0e2b046f86783d8d67630b706fb8bf7652be572c36b65501ba76780b8be477fd8a1bb6638e026e9f708fce0d9ce08ff6197352cabcde0
7
+ data.tar.gz: 21416d4ace5350776837cb947fa6aeda888cdc338cdb83c97ad0a09e9ebdf7b0761ece62c436e55fda75568f225fa23aab4a5208db4352082b92f6f075d60c73
@@ -14,11 +14,6 @@ module Capybara
14
14
 
15
15
  self.rescuable_errors = [StandardError]
16
16
 
17
- if defined?(RSpec)
18
- require 'rspec/expectations'
19
- self.rescuable_errors << RSpec::Expectations::ExpectationNotMetError
20
- end
21
-
22
17
  class Timer
23
18
  class Frozen < StandardError; end
24
19
 
@@ -25,6 +25,10 @@ begin
25
25
  end
26
26
  end
27
27
 
28
+ failure_message do
29
+ "Could not find widget(#{widget_name}, args.join(', ')) on page."
30
+ end
31
+
28
32
  match_when_negated do |role|
29
33
  begin
30
34
  eventually { !role.see?(widget_name, *args) }
@@ -32,6 +36,10 @@ begin
32
36
  false
33
37
  end
34
38
  end
39
+
40
+ failure_message_when_negated do
41
+ "Unexpectedly found widget(#{widget_name}, args.join(', ')) on page."
42
+ end
35
43
  end
36
44
 
37
45
  rescue LoadError
@@ -0,0 +1,3 @@
1
+ require 'rspec/expectations'
2
+
3
+ Capybara::UI::Checkpoint.rescuable_errors << RSpec::Expectations::ExpectationNotMetError
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module UI
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -195,7 +195,9 @@ module Capybara
195
195
  end
196
196
 
197
197
  def items
198
- item_filter.nodes(self).map { |node| item_for(node) }
198
+ Capybara.using_wait_time(0) do
199
+ item_filter.nodes(self).map { |node| item_for(node) }
200
+ end
199
201
  end
200
202
  end
201
203
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Leal
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-26 00:00:00.000000000 Z
12
+ date: 2017-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chronic
@@ -73,14 +73,14 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 1.5.0
76
+ version: 1.17.0
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 1.5.0
83
+ version: 1.17.0
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: cucumber
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -143,14 +143,14 @@ dependencies:
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 4.0.0
146
+ version: 4.2.9
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 4.0.0
153
+ version: 4.2.9
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: codeclimate-test-reporter
156
156
  requirement: !ruby/object:Gem::Requirement
@@ -190,6 +190,7 @@ files:
190
190
  - lib/capybara/ui/rails.rb
191
191
  - lib/capybara/ui/rails/role.rb
192
192
  - lib/capybara/ui/role.rb
193
+ - lib/capybara/ui/rspec.rb
193
194
  - lib/capybara/ui/text_table.rb
194
195
  - lib/capybara/ui/text_table/cell_text.rb
195
196
  - lib/capybara/ui/text_table/mapping.rb
@@ -237,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
238
  version: '0'
238
239
  requirements: []
239
240
  rubyforge_project: "[none]"
240
- rubygems_version: 2.4.8
241
+ rubygems_version: 2.6.13
241
242
  signing_key:
242
243
  specification_version: 4
243
244
  summary: A set of helpers to ease integration testing