api-client-ruby/test/spec_retailcrm.rb

27 lines
622 B
Ruby
Raw Normal View History

2015-04-13 03:14:25 +03:00
# encoding: utf-8
require 'minitest/autorun'
require 'minitest/spec'
require_relative '../lib/retailcrm'
require_relative './bootstrap'
describe Retailcrm do
before do
2015-04-13 18:07:40 +03:00
@boot = Bootstrap.new
2015-04-13 03:14:25 +03:00
@api = Retailcrm.new(@boot.api_url, @boot.api_key)
end
2015-04-13 18:07:40 +03:00
describe '#delivery services status code' do
it 'checks successful status code of delivery services' do
@api.delivery_services.status.to_i.must_be :<, 400
2015-04-13 03:14:25 +03:00
end
end
2015-04-13 18:07:40 +03:00
describe '#delivery types status code' do
it 'checks successful status code of delivery types' do
@api.delivery_types.status.to_i.must_be :<, 400
2015-04-13 03:14:25 +03:00
end
end
end