Module: ViewSpec::DSL::Layout
- Extended by:
- ActiveSupport::Concern
- Included in:
- GroupContext, ScenarioContext, SpecContext
- Defined in:
- lib/view_spec/dsl/layout.rb
Instance Method Summary collapse
Instance Method Details
#layout(value = nil) ⇒ Object
10 11 12 13 |
# File 'lib/view_spec/dsl/layout.rb', line 10 def layout(value = nil) @layout = value unless value.nil? @layout ||= ViewSpec.config.preview_layout end |