api-client-ruby/test/test_retailcrm.rb

28 lines
553 B
Ruby
Raw Normal View History

2015-04-13 03:14:25 +03:00
# encoding: utf-8
require 'minitest/autorun'
require_relative '../lib/retailcrm'
require_relative './bootstrap'
class RetailcrmTest < Minitest::Test
def setup
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
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