Class: Matest::SpecStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/matest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block, result, description = nil) ⇒ SpecStatus

Returns a new instance of SpecStatus.



65
66
67
68
69
# File 'lib/matest.rb', line 65

def initialize(block, result, description=nil)
  @block = block
  @result = result
  @description = description
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



61
62
63
# File 'lib/matest.rb', line 61

def block
  @block
end

#descriptionObject (readonly)

Returns the value of attribute description.



62
63
64
# File 'lib/matest.rb', line 62

def description
  @description
end

#resultObject (readonly)

Returns the value of attribute result.



63
64
65
# File 'lib/matest.rb', line 63

def result
  @result
end

Instance Method Details

#locationObject



71
72
73
# File 'lib/matest.rb', line 71

def location
  "%s:%d" % block.source_location
end