Class: Specdown::Test

Inherits:
Object
  • Object
show all
Includes:
Hook
Defined in:
lib/specdown/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(readme = nil) ⇒ Test

Returns a new instance of Test.



8
9
10
11
12
# File 'lib/specdown/test.rb', line 8

def initialize(readme=nil)
  @readme               = readme
  @code                 = []
  @undefined_implicits  = []
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/specdown/test.rb', line 5

def code
  @code
end

#exceptionObject (readonly)

Returns the value of attribute exception.



6
7
8
# File 'lib/specdown/test.rb', line 6

def exception
  @exception
end

#readmeObject (readonly)

Returns the value of attribute readme.



6
7
8
# File 'lib/specdown/test.rb', line 6

def readme
  @readme
end

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/specdown/test.rb', line 6

def status
  @status
end

#undefined_implicitsObject

Returns the value of attribute undefined_implicits.



5
6
7
# File 'lib/specdown/test.rb', line 5

def undefined_implicits
  @undefined_implicits
end

Instance Method Details

#executeObject



15
16
17
# File 'lib/specdown/test.rb', line 15

def execute   
  execute_code 
end