Module: ElabsMatchers::Matchers::HaveFormErrorsOn
- Defined in:
- lib/elabs_matchers/matchers/have_form_errors_on.rb
Defined Under Namespace
Classes: HaveFormErrorsOnMatcher
Instance Method Summary collapse
-
#have_form_errors_on(field, message) ⇒ Object
Asserts if the supplied flash alert exists or not.
Instance Method Details
#have_form_errors_on(field, message) ⇒ Object
Asserts if the supplied flash alert exists or not
Example: page.should have_form_errors_on(“Name”, “Can’t be blank”)
78 79 80 |
# File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 78 def have_form_errors_on(field, ) HaveFormErrorsOnMatcher.new(field, ) end |