spreewald 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -330,9 +330,7 @@ end
330
330
 
331
331
  # Checks that a certain option is selected for a text field
332
332
  Then /^"([^"]*)" should be selected for "([^"]*)"$/ do |value, field|
333
- patiently do
334
- field_labeled(field).find(:xpath, ".//option[@selected = 'selected'][text() = '#{value}']").should be_present
335
- end
333
+ step %(the "#{field}" field should contain "#{value}")
336
334
  end
337
335
 
338
336
  Then /^nothing should be selected for "([^"]*)"?$/ do |field|
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Spreewald
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (0.5.20)
4
+ spreewald (0.6.0)
5
5
  capybara
6
6
  cucumber
7
7
  cucumber-rails
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (0.5.20)
4
+ spreewald (0.6.0)
5
5
  capybara
6
6
  cucumber
7
7
  cucumber-rails
@@ -12,4 +12,3 @@
12
12
  = label_tag 'textarea_control', 'Textarea control'
13
13
  = text_area_tag 'textarea_control', 'Textarea control value'
14
14
 
15
-
@@ -13,5 +13,10 @@ Feature: Web steps
13
13
  Then I should see a form with the following values:
14
14
  | Text control | Text control value |
15
15
  | Select control | Label 2 |
16
- | Select control without selection | Label 1 |
16
+ | Select control without selection | Label 1 |
17
17
  | Textarea control | Textarea control value |
18
+
19
+ Scenario: /^"([^"]*)" should be selected for "([^"]*)"$/
20
+ Then "Label 2" should be selected for "Select control"
21
+ Then "Label 1" should be selected for "Select control without selection"
22
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Kraze