class RSpec::Matchers::BuiltIn::RaiseError

Public Class Methods

matcher_name() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 733
def self.matcher_name
  "raise error"
end

Public Instance Methods

actual_for_diff() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 696
def actual_for_diff
  if @actual_error
    @actual_error.message
  end
end
actual_for_matcher_text() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 690
def actual_for_matcher_text
  if @actual_error
    "#<#{@actual_error.class.name} #{@actual_error.message.inspect}>"
  end
end
diffable?() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 716
def diffable?
  !@expected_message.to_s.empty?
end
expected_action_for_failure_message() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 720
def expected_action_for_failure_message
  if @actual_error
    "match"
  else
    "raise error"
  end
end
expected_for_diff() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 712
def expected_for_diff
  @expected_message
end
expected_for_matcher_text() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 702
def expected_for_matcher_text
  if @expected_message
    "#<#{@expected_error.name} #{description_of(@expected_message)}>"
  elsif @expected_error.is_a? Regexp
    "#<Exception #{description_of(@expected_error)}>"
  else
    "#<#{@expected_error.name}>"
  end
end
matcher_text_builder_class() click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 728
def matcher_text_builder_class
  SuperDiff::RSpec::MatcherTextBuilders::RaiseError
end