Module: RSpec::Situations::InstanceExtensions
- Defined in:
- lib/rspec/situations/instance_extensions.rb
Instance Method Summary collapse
-
#_rsits(*keys) ⇒ Object
Get an array of situations (from the combined hash) depending on the keys we provide.
-
#_rsits_describe_name ⇒ Object
Generate a string for describe_situation call.
Instance Method Details
#_rsits(*keys) ⇒ Object
Get an array of situations (from the combined hash) depending on the keys we provide
10 11 12 13 14 |
# File 'lib/rspec/situations/instance_extensions.rb', line 10 def _rsits( *keys ) # Go up the example parents and get the situations requested, whereever they may be defined _rsits_combined_hash.select do |key, _| keys.include? key # Then filter out only the keys we are using end.values # Now return an array of situations instead of a hash end |
#_rsits_describe_name ⇒ Object
Generate a string for describe_situation call
4 5 6 |
# File 'lib/rspec/situations/instance_extensions.rb', line 4 def _rsits_describe_name self.class._rsits_describe_name end |