Class: Snapbot::RSpec::Lets

Inherits:
Object
  • Object
show all
Defined in:
lib/snapbot/rspec/lets.rb

Overview

Collect RSpec ‘let`s for a given example and all her parents

Instance Method Summary collapse

Constructor Details

#initialize(example) ⇒ Lets

Returns a new instance of Lets.



7
8
9
# File 'lib/snapbot/rspec/lets.rb', line 7

def initialize(example)
  @example = example
end

Instance Method Details

#collectObject



11
12
13
# File 'lib/snapbot/rspec/lets.rb', line 11

def collect
  _collect(@example.class, [])
end