Class: ViewSpec::Group

Inherits:
DSL::Context show all
Includes:
DSL::Controller, DSL::Layout, DSL::Scenarios, DSL::Title
Defined in:
lib/view_spec/group.rb

Instance Method Summary collapse

Methods included from DSL::Controller

#controller

Methods included from DSL::Scenarios

#scenario, #scenarios

Methods included from DSL::Layout

#layout

Methods included from DSL::Title

#title

Methods inherited from DSL::Context

#entries, #initialize, lookup_attr, lookup_attrs, type

Constructor Details

This class inherits a constructor from ViewSpec::DSL::Context

Instance Method Details

#short_identifierObject



8
9
10
# File 'lib/view_spec/group.rb', line 8

def short_identifier
  @subject.to_short_identifier
end

#specObject



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

def spec
  @outer_scope
end

#to_paramObject



16
17
18
# File 'lib/view_spec/group.rb', line 16

def to_param
  short_identifier
end

#to_partial_pathObject



20
21
22
# File 'lib/view_spec/group.rb', line 20

def to_partial_path
  "view_spec/group"
end