Sha256: fa1e2a1cc9ef737560c3a3fc4975a1af287af3010fbec9756af338c5204bf83f

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'test_helper'

module Regaliator
  class APIVersionErrorTest < Minitest::Test
    def test_class_inherits_from_standard_error
      assert_operator APIVersionError, :<, StandardError
    end

    def test_constructor_expects_a_version
      subject = APIVersionError.new('1.0')
      assert_match /1\.0/, subject.message
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
regaliator-4.0.1 test/regaliator/api_version_error_test.rb
regaliator-4.0.0 test/regaliator/api_version_error_test.rb