class RSpec::JUnit::Example
Attributes
notification[R]
Public Class Methods
new(notification)
click to toggle source
# File lib/rspec/junit/example.rb, line 6 def initialize(notification) @notification = notification end
Public Instance Methods
failed?()
click to toggle source
# File lib/rspec/junit/example.rb, line 18 def failed? false end
name()
click to toggle source
# File lib/rspec/junit/example.rb, line 22 def name metadata[:full_description] end
passed?()
click to toggle source
# File lib/rspec/junit/example.rb, line 10 def passed? false end
pending?()
click to toggle source
# File lib/rspec/junit/example.rb, line 14 def pending? false end
run_time()
click to toggle source
# File lib/rspec/junit/example.rb, line 30 def run_time metadata[:execution_result].run_time end
testsuite()
click to toggle source
# File lib/rspec/junit/example.rb, line 26 def testsuite metadata[:example_group][:description] end
Private Instance Methods
metadata()
click to toggle source
# File lib/rspec/junit/example.rb, line 35 def metadata @_metadata ||= @notification.example.metadata end