Sha256: 8d23ba702d8f027d0e9446040362ec2c7e93e1b0a63b8adfa5480265ac9df4c5
Contents?: true
Size: 745 Bytes
Versions: 10
Compression:
Stored size: 745 Bytes
Contents
require 'spec_helper' describe CandyCheck::AppStore::VerificationFailure do subject { CandyCheck::AppStore::VerificationFailure } let(:known) do [21_000, 21_002, 21_003, 21_004, 21_005, 21_006, 21_007, 21_008] end it 'fetched an failure with message for every known code' do known.each do |code| got = subject.fetch(code) got.code.must_equal code got.message.wont_equal 'Unknown error' end end it 'fetched an failure for unknown codes' do got = subject.fetch(1234) got.code.must_equal 1234 got.message.must_equal 'Unknown error' end it 'fetched an failure for nil code' do got = subject.fetch(nil) got.code.must_equal(-1) got.message.must_equal 'Unknown error' end end
Version data entries
10 entries across 10 versions & 1 rubygems