Class: TestBench::Fixture::Controls::Fixture::Example

Inherits:
Object
  • Object
show all
Includes:
TestBench::Fixture
Defined in:
lib/test_bench/fixture/controls/fixture.rb

Instance Attribute Summary collapse

Attributes included from TestBench::Fixture

#test_session

Instance Method Summary collapse

Methods included from TestBench::Fixture

#assert, #assert_raises, assure_boolean, #comment, comment_text_and_disposition, #context, #context!, #detail, #fixture, output, #refute, #refute_raises, #test, #test!, title

Constructor Details

#initialize(some_argument = nil, some_keyword_argument: nil, &some_block_argument) ⇒ Example

Returns a new instance of Example.



18
19
20
21
22
# File 'lib/test_bench/fixture/controls/fixture.rb', line 18

def initialize(some_argument=nil, some_keyword_argument: nil, &some_block_argument)
  @some_argument = some_argument
  @some_keyword_argument = some_keyword_argument
  @some_block_argument = some_block_argument
end

Instance Attribute Details

#actuatedObject

Returns the value of attribute actuated.



12
13
14
# File 'lib/test_bench/fixture/controls/fixture.rb', line 12

def actuated
  @actuated
end

#some_argumentObject (readonly)

Returns the value of attribute some_argument.



14
15
16
# File 'lib/test_bench/fixture/controls/fixture.rb', line 14

def some_argument
  @some_argument
end

#some_block_argumentObject (readonly)

Returns the value of attribute some_block_argument.



16
17
18
# File 'lib/test_bench/fixture/controls/fixture.rb', line 16

def some_block_argument
  @some_block_argument
end

#some_keyword_argumentObject (readonly)

Returns the value of attribute some_keyword_argument.



15
16
17
# File 'lib/test_bench/fixture/controls/fixture.rb', line 15

def some_keyword_argument
  @some_keyword_argument
end

Instance Method Details

#actuated?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/test_bench/fixture/controls/fixture.rb', line 24

def actuated?
  actuated ? true : false
end

#callObject



28
29
30
# File 'lib/test_bench/fixture/controls/fixture.rb', line 28

def call
  self.actuated = true
end