Module: Assert::Context::SuiteDSL

Included in:
Assert::Context
Defined in:
lib/assert/context/suite_dsl.rb

Instance Method Summary collapse

Instance Method Details

#suite(suite_obj = nil) ⇒ Object


6
7
8
9
10
11
12
13
14
15
16
# File 'lib/assert/context/suite_dsl.rb', line 6

def suite(suite_obj = nil)
  if suite_obj
    @suite = suite_obj
  else
    @suite || if superclass.respond_to?(:suite)
      superclass.suite
    else
      Assert.suite
    end
  end
end