Sha256: 78b6487155faf244244651c184422e72ad4d9987dad4713381249715b5314883
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
require 'spec_helper' RSpec.describe SolidusAvataxCertified::Response::Base do subject { described_class.new(response_hash) } describe '#success?' do let(:response_hash) { attributes_for(:response_hash_success).stringify_keys } it 'returns true when ResultCode is Success' do expect(subject.success?).to be true end end describe '#error?' do let(:response_hash) { attributes_for(:response_hash_error).stringify_keys } it 'returns true with ResultCode is not Success' do expect(subject.error?).to be true end end end
Version data entries
3 entries across 3 versions & 1 rubygems