Sha256: 1d15068e234ae9b5ccba6552a5cd6c5a8e6143514924386b00bc9e2dec3bfda5

Contents?: true

Size: 748 Bytes

Versions: 272

Compression:

Stored size: 748 Bytes

Contents

#--
#
# Author:: Nathaniel Talbott.
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.

module Test
  module Unit

    # Thrown by Test::Unit::Assertions when an assertion fails.
    class AssertionFailedError < StandardError
      attr_accessor :expected, :actual, :user_message
      attr_accessor :inspected_expected, :inspected_actual
      def initialize(message=nil, options=nil)
        options ||= {}
        @expected = options[:expected]
        @actual = options[:actual]
        @inspected_expected = options[:inspected_expected]
        @inspected_actual = options[:inspected_actual]
        @user_message = options[:user_message]
        super(message)
      end
    end
  end
end

Version data entries

272 entries across 226 versions & 20 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/extensions/test-libs/test/unit/assertionfailederror.rb
postfinancecheckout-ruby-sdk-4.5.0 vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/assertion-failed-error.rb
wallee-ruby-sdk-4.5.0 vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/assertion-failed-error.rb
wallee-ruby-sdk-4.4.0 vendor/bundle/ruby/3.1.0/gems/test-unit-3.3.9/lib/test/unit/assertion-failed-error.rb
postfinancecheckout-ruby-sdk-4.4.0 vendor/bundle/ruby/3.1.0/gems/test-unit-3.3.9/lib/test/unit/assertion-failed-error.rb
postfinancecheckout-ruby-sdk-4.2.0 vendor/bundle/ruby/3.0.0/gems/test-unit-3.3.9/lib/test/unit/assertion-failed-error.rb
wallee-ruby-sdk-4.2.0 vendor/bundle/ruby/3.0.0/gems/test-unit-3.3.9/lib/test/unit/assertion-failed-error.rb
postfinancecheckout-ruby-sdk-3.3.0 vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
wallee-ruby-sdk-3.3.0 vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
whitelabelmachinename-ruby-sdk-3.2.1 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
wallee-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
postfinancecheckout-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
wallee-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
postfinancecheckout-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
whitelabelmachinename-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
whitelabelmachinename-ruby-sdk-3.1.9 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
whitelabelmachinename-ruby-sdk-3.1.8 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
whitelabelmachinename-ruby-sdk-3.1.7 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
whitelabelmachinename-ruby-sdk-3.1.6 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb
whitelabelmachinename-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/lib/test/unit/assertion-failed-error.rb