senny / corner_stones

capybara building blocks for acceptance tests.
18 stars 8 forks source link

every element with error-class is treated as error #23

Closed bjoernbur closed 11 years ago

bjoernbur commented 11 years ago

when you use the module WithInlineErrors to validate the form, every html-element with a css-class "error" is treated as an error. Even if the element is not related to the form.

the problem can be found in the file "with_inline_errors.rb":

all('.error').map do |container|

the solution is that the check for error-elements has to be within the form scope.

senny commented 11 years ago

@bjoernbur PR would be nice :smiling_imp: