effective_test_bot 0.6.11 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92979123ee096f434866473b770ed3a36cae7a30
|
4
|
+
data.tar.gz: fd9c52fc6709ab4bc59b4c4a1df576cf485298c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08520b2a3e9925b444f75716bd702c3d89fafb2eae2e309ecd3b383ba6720a78093bcf2e4474e0af1ab18cfe726fb9b715c915faf022901db21a9a9ac7b80969
|
7
|
+
data.tar.gz: 87afbb19fd69f48e9844757eb97cfff049f0cc5b8b0b710f1d31df4ecfd07038bcd931d23a92340d5b4feca0a09cd9dc2d0985846622f6d09353c9657b70ef09
|
@@ -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? ? [
|
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...' }\""
|