Class: Snapbot::RSpec::Lets
- Inherits:
-
Object
- Object
- Snapbot::RSpec::Lets
- Defined in:
- lib/snapbot/rspec/lets.rb
Overview
Collect RSpec ‘let`s for a given example and all her parents
Instance Method Summary collapse
- #collect ⇒ Object
-
#initialize(example) ⇒ Lets
constructor
A new instance of Lets.
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
#collect ⇒ Object
11 12 13 |
# File 'lib/snapbot/rspec/lets.rb', line 11 def collect _collect(@example.class, []) end |