Module: ViewSpec::DSL::Groups
- Extended by:
- ActiveSupport::Concern
- Included in:
- SpecContext
- Defined in:
- lib/view_spec/dsl/groups.rb
Instance Method Summary collapse
Instance Method Details
#group(name, &block) ⇒ Object
10 11 12 13 |
# File 'lib/view_spec/dsl/groups.rb', line 10 def group(name, &block) entries << Group.new(name, @entry, cascading_values, &block) entries.last end |
#groups ⇒ Object
6 7 8 |
# File 'lib/view_spec/dsl/groups.rb', line 6 def groups GroupCollection.new(entries.filter { _1.type == :group }.to_a) end |