mirror of
https://github.com/retailcrm/api-client-ruby.git
synced 2024-11-23 05:26:07 +03:00
28 lines
553 B
Ruby
28 lines
553 B
Ruby
# encoding: utf-8
|
|
|
|
require 'minitest/autorun'
|
|
require_relative '../lib/retailcrm'
|
|
require_relative './bootstrap'
|
|
|
|
class RetailcrmTest < Minitest::Test
|
|
def setup
|
|
@boot = Bootstrap.new
|
|
@api = Retailcrm.new(@boot.api_url, @boot.api_key)
|
|
end
|
|
|
|
def test_delivery_services
|
|
assert_equal true,
|
|
@api.delivery_services.is_successfull?
|
|
end
|
|
|
|
def test_delivery_types
|
|
assert_equal true,
|
|
@api.delivery_types.is_successfull?
|
|
end
|
|
|
|
def test_order_methods
|
|
assert_equal true,
|
|
@api.order_methods.is_successfull?
|
|
end
|
|
end
|