mirror of
https://github.com/retailcrm/api-client-ruby.git
synced 2024-11-23 13:36:07 +03:00
27 lines
632 B
Ruby
27 lines
632 B
Ruby
|
# encoding: utf-8
|
||
|
|
||
|
require 'minitest/autorun'
|
||
|
require 'minitest/spec'
|
||
|
|
||
|
require_relative '../lib/retailcrm'
|
||
|
require_relative './bootstrap'
|
||
|
|
||
|
describe Retailcrm do
|
||
|
before do
|
||
|
@boot = Bootstrap.new()
|
||
|
@api = Retailcrm.new(@boot.api_url, @boot.api_key)
|
||
|
end
|
||
|
|
||
|
describe "#delivery services status code" do
|
||
|
it "checks successful status code of delivery services" do
|
||
|
@api.delivery_services.get_status.to_i.must_be :<, 400
|
||
|
end
|
||
|
end
|
||
|
|
||
|
describe "#delivery types status code" do
|
||
|
it "checks successful status code of delivery types" do
|
||
|
@api.delivery_types.get_status.to_i.must_be :<, 400
|
||
|
end
|
||
|
end
|
||
|
end
|