Class: RSpec::Given::Framework
- Inherits:
-
Object
- Object
- RSpec::Given::Framework
- Defined in:
- lib/given/rspec/framework.rb
Overview
Framework interface for RSpec/Given.
Constant Summary collapse
- PendingError =
Class.new(StandardError)
Instance Method Summary collapse
- #count_assertion ⇒ Object
- #explicit_assertions? ⇒ Boolean
- #explicitly_asserted ⇒ Object
- #fail_with(*args) ⇒ Object
- #pending_error ⇒ Object
- #start_evaluation ⇒ Object
Instance Method Details
#count_assertion ⇒ Object
16 17 |
# File 'lib/given/rspec/framework.rb', line 16 def count_assertion end |
#explicit_assertions? ⇒ Boolean
12 13 14 |
# File 'lib/given/rspec/framework.rb', line 12 def explicit_assertions? @matcher_called end |
#explicitly_asserted ⇒ Object
19 20 21 |
# File 'lib/given/rspec/framework.rb', line 19 def explicitly_asserted @matcher_called = true end |
#fail_with(*args) ⇒ Object
23 24 25 |
# File 'lib/given/rspec/framework.rb', line 23 def fail_with(*args) ::RSpec::Expectations.fail_with(*args) end |
#pending_error ⇒ Object
29 30 31 |
# File 'lib/given/rspec/framework.rb', line 29 def pending_error RSpec::Core::Pending::PendingDeclaredInExample end |
#start_evaluation ⇒ Object
8 9 10 |
# File 'lib/given/rspec/framework.rb', line 8 def start_evaluation @matcher_called = false end |