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_countObject



12
13
14
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 12

def expectation_count
  @expectation_count ||= 0
end

.last_spec_hashObject

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_debugObject



5
6
7
# File 'lib/rspec_expectation_count/expectation_debug.rb', line 5

def expectation_debug
  @expectation_debug ||= []
end

.update_expectation_debugObject



23
24
25
# File 'lib/rspec_expectation_count/expectation_debug.rb', line 23

def update_expectation_debug
  expectation_debug << last_spec_hash
end