effective_test_bot 0.6.11 → 0.6.12

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: 3f7f31cd0ae5cbb23b37c73a7c932795edd534e1
4
- data.tar.gz: a0728e3acc1a33da48f72023dfe18a7efded3d3a
3
+ metadata.gz: 92979123ee096f434866473b770ed3a36cae7a30
4
+ data.tar.gz: fd9c52fc6709ab4bc59b4c4a1df576cf485298c8
5
5
  SHA512:
6
- metadata.gz: 4b834472643a6819b02f475071a63c34365ee505d8719d10f76540773f1783452de64f3c56ca27a085d22350729c38bda1c31d4fb6681da9f02c08d3e2fc0793
7
- data.tar.gz: 4faa9cf221fe6b79d1bcd70e46c4d6e18e33be05ea14e7f9b1abb7851137185c957874115e19dc534a00376817789c64132d3e71d87d4e9f91baf931548c9fb8
6
+ metadata.gz: 08520b2a3e9925b444f75716bd702c3d89fafb2eae2e309ecd3b383ba6720a78093bcf2e4474e0af1ab18cfe726fb9b715c915faf022901db21a9a9ac7b80969
7
+ data.tar.gz: 87afbb19fd69f48e9844757eb97cfff049f0cc5b8b0b710f1d31df4ecfd07038bcd931d23a92340d5b4feca0a09cd9dc2d0985846622f6d09353c9657b70ef09
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '0.6.11'.freeze
2
+ VERSION = '0.6.12'.freeze
3
3
  end
@@ -128,7 +128,7 @@ module EffectiveTestBotAssertions
128
128
  # Rails jquery-ujs data-disable-with
129
129
  # = f.button :submit, 'Save', data: { disable_with: 'Saving...' }
130
130
  def assert_jquery_ujs_disable_with(label = nil, message = nil)
131
- submits = label.present? ? [find(:link_or_button, label)] : all("input[type='submit']")
131
+ submits = label.present? ? all("input[type='submit']", text: label) : all("input[type='submit']")
132
132
  all_disabled_with = submits.all? { |submit| submit['data-disable-with'].present? }
133
133
 
134
134
  assert all_disabled_with, message || "(jquery_ujs_disable_with) Expected rails jquery-ujs data-disable-with to be present on #{(label || "all input[type='submit'] fields")}\nInclude it on your submit buttons by adding \"data: { disable_with: 'Saving...' }\""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_test_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.6.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect