Sha256: d63390d4b74a4afc5788de3cb2158b56041c79ca20c5dcd421bf22da47e8df43
Contents?: true
Size: 602 Bytes
Versions: 16
Compression:
Stored size: 602 Bytes
Contents
require 'spec_helper' RSpec.describe RDStation::ErrorHandler::Unauthorized do describe '#raise_error' do subject(:unauthorized_error) { described_class.new(errors) } context 'when there is an unauthorized error' do let(:errors) do [ { 'error_message' => 'Error Message', 'error_type' => 'UNAUTHORIZED' } ] end it 'raises an Unauthorized error' do expect do unauthorized_error.raise_error end.to raise_error(RDStation::Error::Unauthorized, 'Error Message') end end end end
Version data entries
16 entries across 16 versions & 1 rubygems