Class: Thoreau::DSL::Context::TestCases

Inherits:
Object
  • Object
show all
Includes:
Clan, Logging
Defined in:
lib/thoreau/dsl/context/test_cases.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Clan

#action, def_family_methods_for, #expanded

Methods included from Logging

included, logger, #logger

Constructor Details

#initialize(clan_model, &context) ⇒ TestCases

Returns a new instance of TestCases.



10
11
12
13
14
# File 'lib/thoreau/dsl/context/test_cases.rb', line 10

def initialize(clan_model, &context)
  @test_clan_model = clan_model

  self.instance_eval(&context)
end

Instance Attribute Details

#test_clan_modelObject (readonly)

Returns the value of attribute test_clan_model.



8
9
10
# File 'lib/thoreau/dsl/context/test_cases.rb', line 8

def test_clan_model
  @test_clan_model
end