spreewald 0.5.7 → 0.5.8
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.
- data/lib/spreewald/web_steps.rb +3 -2
- data/lib/spreewald_support/version.rb +1 -1
- metadata +4 -4
data/lib/spreewald/web_steps.rb
CHANGED
|
@@ -177,10 +177,11 @@ Then /^the "([^"]*)" field should have the error "([^"]*)"$/ do |field, error_me
|
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
Then /^the "([^\"]*)" field should( not)? have an error$/ do |
|
|
180
|
+
Then /^the "([^\"]*)" field should( not)? have an error$/ do |label, negate|
|
|
181
181
|
patiently do
|
|
182
182
|
expectation = negate ? :should_not : :should
|
|
183
|
-
|
|
183
|
+
field = find_field(label)
|
|
184
|
+
page.send(expectation, have_css(".field_with_errors ##{field[:id]}"))
|
|
184
185
|
end
|
|
185
186
|
end
|
|
186
187
|
|
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:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 8
|
|
10
|
+
version: 0.5.8
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tobias Kraze
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-03-
|
|
18
|
+
date: 2013-03-25 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|