Sha256: 60075e9e643b629c65b7c45d7740a5a33747be92baee4b175d6aeb27d3598ea8

Contents?: true

Size: 526 Bytes

Versions: 11

Compression:

Stored size: 526 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

11 entries across 11 versions & 1 rubygems

Version Path
soapy_cake-2.3.1 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.3.0 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.2.7 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.2.6 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.2.5 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.2.4 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.2.3 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.2.1 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.1.6 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.1.5 spec/lib/soapy_cake/request_spec.rb
soapy_cake-2.1.4 spec/lib/soapy_cake/request_spec.rb