Sha256: 8070ef87d9be8a5c607e848ec2e76696e44ae228b987440a17ebe7dd1348a6b5
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
require 'spec_helper' require 'kintone/kintone_error' describe Kintone::KintoneError do let(:target) { Kintone::KintoneError.new(messages, http_status) } describe '#message' do subject { target.message } let(:messages) do { 'message' => '不正なJSON文字列です。', 'id' => '1505999166-897850006', 'code' => 'CB_IJ01' } end let(:http_status) { 500 } it { is_expected.to eq '500 [CB_IJ01] 不正なJSON文字列です。(1505999166-897850006)' } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kintone-0.1.5 | spec/kintone/kintone_error_spec.rb |