class Matest::SpecStatus

Attributes

example[R]
result[R]

Public Class Methods

new(example, result, description=nil) click to toggle source
# File lib/matest/spec_status.rb, line 6
def initialize(example, result, description=nil)
  @example = example
  @result = result
end
to_s() click to toggle source
# File lib/matest/spec_status.rb, line 23
def self.to_s
  name
end

Public Instance Methods

description() click to toggle source
# File lib/matest/spec_status.rb, line 15
def description
  example.description
end
location() click to toggle source
# File lib/matest/spec_status.rb, line 11
def location
  "%s:%d" % example.example_block.source_location
end
name() click to toggle source
# File lib/matest/spec_status.rb, line 19
def name
  self.class.name
end