Module: Watirmark::CucumberPostFailureBuffering
- Included in:
- Session
- Defined in:
- lib/watirmark/session.rb
Overview
This functionality allows us to ignore and buffer post failures and then compare on a cucumber step
Constant Summary collapse
- @@buffer_post_failure =
false
- @@post_failure =
nil
Instance Method Summary collapse
- #buffer_post_failure ⇒ Object
- #catch_post_failures ⇒ Object
- #post_failure ⇒ Object
- #post_failure=(x) ⇒ Object
Instance Method Details
#buffer_post_failure ⇒ Object
17 18 19 |
# File 'lib/watirmark/session.rb', line 17 def buffer_post_failure @@buffer_post_failure end |
#catch_post_failures ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/watirmark/session.rb', line 21 def catch_post_failures @@post_failure = nil @@buffer_post_failure = true yield @@buffer_post_failure = false @@post_failure end |
#post_failure ⇒ Object
9 10 11 |
# File 'lib/watirmark/session.rb', line 9 def post_failure @@post_failure end |
#post_failure=(x) ⇒ Object
13 14 15 |
# File 'lib/watirmark/session.rb', line 13 def post_failure=(x) @@post_failure = x end |