spreewald 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 |field, negate|
180
+ Then /^the "([^\"]*)" field should( not)? have an error$/ do |label, negate|
181
181
  patiently do
182
182
  expectation = negate ? :should_not : :should
183
- page.send(expectation, have_css('.field_with_errors', :text => field))
183
+ field = find_field(label)
184
+ page.send(expectation, have_css(".field_with_errors ##{field[:id]}"))
184
185
  end
185
186
  end
186
187
 
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Spreewald
4
- VERSION = "0.5.7"
4
+ VERSION = "0.5.8"
5
5
  end
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: 5
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
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-22 00:00:00 +01:00
18
+ date: 2013-03-25 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency