Module: RSpec::Expectations
- Defined in:
- lib/rspec_expectation_count/expectation_debug.rb,
lib/rspec_expectation_count/rspec_expectation_count.rb
Defined Under Namespace
Classes: NegativeExpectationHandler, PositiveExpectationHandler
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.expectation_count ⇒ Object
12
13
14
|
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 12
def expectation_count
@expectation_count ||= 0
end
|
.last_spec_hash ⇒ Object
Returns the value of attribute last_spec_hash.
9
10
11
|
# File 'lib/rspec_expectation_count/expectation_debug.rb', line 9
def last_spec_hash
@last_spec_hash
end
|
Class Method Details
.expectation_debug ⇒ Object
5
6
7
|
# File 'lib/rspec_expectation_count/expectation_debug.rb', line 5
def expectation_debug
@expectation_debug ||= []
end
|
.update_expectation_debug ⇒ Object
23
24
25
|
# File 'lib/rspec_expectation_count/expectation_debug.rb', line 23
def update_expectation_debug
expectation_debug << last_spec_hash
end
|