Sha256: 649f450c663c1c73bb47b8aa6c7fb3cc004e80473f05493b9efe50af17d36efc

Contents?: true

Size: 900 Bytes

Versions: 1

Compression:

Stored size: 900 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

class ExceptionsTest < ActiveSupport::TestCase
  context 'Exceptions' do
    context 'MissingAttribute' do
      should 'be a StandardError' do
        assert EspSdk::MissingAttribute.new.is_a?(StandardError)
      end
    end

    context 'UnknownAttribute' do
      should 'be a StandardError' do
        assert EspSdk::UnknownAttribute.new.is_a?(StandardError)
      end
    end

    context 'TokenExpired' do
      should 'be a StandardError' do
        assert EspSdk::TokenExpired.new.is_a?(StandardError)
      end
    end

    context 'RecordNotFound' do
      should 'be a StandardError' do
        assert EspSdk::RecordNotFound.new.is_a?(StandardError)
      end
    end

    context 'Exception' do
      should 'be a StandardError' do
        assert EspSdk::Exception.new.is_a?(StandardError)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
esp_sdk-1.0.0 test/esp_sdk/exceptions_test.rb