Sha256: 189c51e024a4e4f1ab847ba5eca6f189b40c8f73fd92e710d0496e1e88ff475b
Contents?: true
Size: 525 Bytes
Versions: 13
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true RSpec.describe SoapyCake::Request do it 'raises if there is no api version stored' do expect do described_class.new(:test, :does, :not_exist).xml end.to raise_error(SoapyCake::Error, 'Unknown API call test::does::not_exist') end it 'raises when you pass non-date-like objects in date fields' do expect do described_class.new(:admin, :export, :offers, start_date: '2015-01-01').xml end.to raise_error(SoapyCake::Error, /Date object for 'start_date'/) end end
Version data entries
13 entries across 13 versions & 1 rubygems