Sha256: 933803da5c30aabf22e137df36c981fd1529163b5247808c175fcec74829984c
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Imis::Mapper do let(:api) { Imis::Api.new } describe '#update' do before { api.imis_id = 31092 } it 'sends a mapped update' do expect(api.mapper.update(:mm, 15)).to be_a(Hash) end it 'raises for unmapped updates' do expect { api.mapper.update(:something, 'anything') }.to raise_error( Imis::Error::Mapper, 'Unrecognized field: "something". ' \ 'Please report what data you are attempting to work with to ITCom leadership.' ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems