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: 829cfaaa86ce9386294cc90361766b1fc52f79b2
4
- data.tar.gz: 618cc0ccc9b30934d1b5a8183bed98c8f5785c9e
3
+ metadata.gz: 127d50db55254165d9df6da7b80924a5c6f633c1
4
+ data.tar.gz: 7da6cf22fba687b9ddebe895435de8e3193cb715
5
5
  SHA512:
6
- metadata.gz: b745e5075c5ac1fbf97f752353eea7e3c2934e7668fa91ab950b47c9716de24d5737a7f39987848ed1196bed144c98653aacea7d623641634f2441d86083b6e4
7
- data.tar.gz: 6c7e4f3411c6f1e4505ddcc146e70eb22dcdf9a3aaea523069d535324c976918cf2b7e4d12f9cee55bee50d3cd2f269086868c556b327dbd0cc8cb4189812806
6
+ metadata.gz: 1c01f026ebcd985496fa1130003a547392a91adc866fdbb9d4fd8bd616ec6d9c0300adec3c792862ed03a5951a082518376ab93930d21efbdf3a851a588fcc42
7
+ data.tar.gz: e75396ee5329dc431b92ce98da06cf19ab1038d27c53372509e5481c9725cc33736602efa71d84ab5f727ec23cbda0241a21a4af8532fdb9438b91daed6dae0e
@@ -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(?: within (.*))? should be checked$/ do |label, parent|
268
- patiently do
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
- with_scope(parent) do
280
- field = find_field(label)
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
 
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -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(?: within (.*))? should be checked$/
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze