-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve and test "blabla should contain" steps. Rename features.
- Loading branch information
1 parent
e4f3611
commit 96abd6b
Showing
12 changed files
with
88 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# coding: UTF-8 | ||
|
||
module Spreewald | ||
VERSION = "0.5.20" | ||
VERSION = "0.6.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: ../.. | ||
specs: | ||
spreewald (0.5.17) | ||
spreewald (0.5.20) | ||
capybara | ||
cucumber | ||
cucumber-rails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: ../.. | ||
specs: | ||
spreewald (0.5.17) | ||
spreewald (0.5.20) | ||
capybara | ||
cucumber | ||
cucumber-rails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class FormsController < ApplicationController | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
= form_tag do | ||
|
||
= label_tag 'text_control', 'Text control' | ||
= text_field_tag 'text_control', 'Text control value' | ||
|
||
= label_tag 'select_control', 'Select control' | ||
= select_tag 'select_control', options_for_select([['Label 1', 'value1'], ['Label 2', 'value2'], ['Label 3', 'value3']], 'value2') | ||
|
||
= label_tag 'select_control_without_selection', 'Select control without selection' | ||
= select_tag 'select_control_without_selection', options_for_select([['Label 1', 'value1'], ['Label 2', 'value2'], ['Label 3', 'value3']]) | ||
|
||
= label_tag 'textarea_control', 'Textarea control' | ||
= text_area_tag 'textarea_control', 'Textarea control value' | ||
|
||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Feature: Web steps | ||
|
||
Background: | ||
When I go to "/forms/form1" | ||
|
||
Scenario: /^the "([^"]*)" field should (not )?contain "([^"]*)"$/ | ||
Then the "Text control" field should contain "Text control value" | ||
Then the "Select control" field should contain "Label 2" | ||
Then the "Select control without selection" field should contain "Label 1" | ||
Then the "Textarea control" field should contain "Textarea control value" | ||
|
||
Scenario: /^I should see a form with the following values:$/ | ||
Then I should see a form with the following values: | ||
| Text control | Text control value | | ||
| Select control | Label 2 | | ||
| Select control without selection | Label 1 | | ||
| Textarea control | Textarea control value | |