spreewald 1.2.0 → 1.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 127d50db55254165d9df6da7b80924a5c6f633c1
|
4
|
+
data.tar.gz: 7da6cf22fba687b9ddebe895435de8e3193cb715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c01f026ebcd985496fa1130003a547392a91adc866fdbb9d4fd8bd616ec6d9c0300adec3c792862ed03a5951a082518376ab93930d21efbdf3a851a588fcc42
|
7
|
+
data.tar.gz: e75396ee5329dc431b92ce98da06cf19ab1038d27c53372509e5481c9725cc33736602efa71d84ab5f727ec23cbda0241a21a4af8532fdb9438b91daed6dae0e
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -264,22 +264,12 @@ Then /^the "([^"]*)" field should have no error$/ do |field|
|
|
264
264
|
end
|
265
265
|
|
266
266
|
# nodoc
|
267
|
-
Then /^the "([^"]*)" checkbox(
|
268
|
-
|
269
|
-
with_scope(parent) do
|
270
|
-
field = find_field(label)
|
271
|
-
field.should be_checked
|
272
|
-
end
|
273
|
-
end
|
274
|
-
end
|
267
|
+
Then /^the "([^"]*)" checkbox should( not)? be checked$/ do |label, negate|
|
268
|
+
expectation = negate ? :should_not : :should
|
275
269
|
|
276
|
-
# nodoc
|
277
|
-
Then /^the "([^"]*)" checkbox(?: within (.*))? should not be checked$/ do |label, parent|
|
278
270
|
patiently do
|
279
|
-
|
280
|
-
|
281
|
-
field.should_not be_checked
|
282
|
-
end
|
271
|
+
field = find_field(label)
|
272
|
+
field.send expectation, be_checked
|
283
273
|
end
|
284
274
|
end
|
285
275
|
|
@@ -47,7 +47,7 @@ Feature: Web steps
|
|
47
47
|
Then I should be on "/static_pages/link_to_home"
|
48
48
|
|
49
49
|
|
50
|
-
Scenario: /^the "([^"]*)" checkbox(
|
50
|
+
Scenario: /^the "([^"]*)" checkbox should( not)? be checked$/
|
51
51
|
When I go to "/forms/checkbox_form"
|
52
52
|
Then the "Checked" checkbox should be checked
|
53
53
|
And the "Unchecked" checkbox should not be checked
|