Class: Kapnismology::RSpecResult

Inherits:
BaseResult show all
Defined in:
lib/kapnismology/spec_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseResult

#add_extra_messages, #passed?, #to_hash, #to_s

Constructor Details

#initialize(result) ⇒ RSpecResult



6
7
8
9
10
11
12
# File 'lib/kapnismology/spec_helper.rb', line 6

def initialize(result)
  hash = result.to_hash
  @data = hash[:data]
  @message = hash[:message]
  @passed = hash[:passed]
  @extra_messages = hash[:extra_messages]
end

Instance Attribute Details

#dataObject (readonly)

Deprecated but many users test on these properties



5
6
7
# File 'lib/kapnismology/spec_helper.rb', line 5

def data
  @data
end

#extra_messagesObject (readonly)

Deprecated but many users test on these properties



5
6
7
# File 'lib/kapnismology/spec_helper.rb', line 5

def extra_messages
  @extra_messages
end

#messageObject (readonly)

Deprecated but many users test on these properties



5
6
7
# File 'lib/kapnismology/spec_helper.rb', line 5

def message
  @message
end