Module: ElabsMatchers::Matchers::HaveFlash
- Defined in:
- lib/elabs_matchers/matchers/have_flash.rb
Defined Under Namespace
Classes: HaveFlashMatcher
Instance Method Summary collapse
-
#have_flash_alert(message) ⇒ Object
Asserts if the supplied flash alert exists or not.
-
#have_flash_notice(message) ⇒ Object
Asserts if the supplied flash notice exists or not.
Instance Method Details
#have_flash_alert(message) ⇒ Object
Asserts if the supplied flash alert exists or not
Example: page.should have_flash_alert(“Error”)
64 65 66 |
# File 'lib/elabs_matchers/matchers/have_flash.rb', line 64 def have_flash_alert() HaveFlashMatcher.new(:alert, ) end |
#have_flash_notice(message) ⇒ Object
Asserts if the supplied flash notice exists or not
Example: page.should have_flash_notice(“Success”)
51 52 53 |
# File 'lib/elabs_matchers/matchers/have_flash.rb', line 51 def have_flash_notice() HaveFlashMatcher.new(:notice, ) end |