b0VIM 7.4}U?maiahpotatochips~maiah/sandbox/burstsmspuppet/vagrant/dev/ruby-transmitsms/current/spec/resellers_api_spec.rbutf-8 3210#"! UtpUadUN732Y21  k , $    N  t J  ~ > h @ ?   ^$|CL end end end end end end end end end assert_equal "OK", response.body["error"]["description"] assert_equal "SUCCESS", response.body["error"]["code"] assert_equal 2026, response.body["user_id"] assert_equal 17389227, response.body["id"] assert_equal 200, response.code response = @api.get_transaction(17389227) VCR.use_cassette("resellers_api_get_transaction") do def test_get_transaction() end end assert_equal "OK", response.body["error"]["description"] assert_equal "SUCCESS", response.body["error"]["code"] assert_equal 6, response.body["transactions_total"] assert_equal 200, response.code response = @api.get_transactions(2026) VCR.use_cassette("resellers_api_get_transactions") do def test_get_transactions() end end assert_equal 411, response.code response = @api.edit_client(2024) VCR.use_cassette("resellers_api_edit_client") do # Needs to revisit why getting 411?? def test_edit_client() end end assert_equal "User already exists", response.body["error"]["description"] assert_equal "KEY_EXISTS", response.body["error"]["code"] assert_equal 400, response.code response = @api.add_client("my_client_test_13", nil, "my@clienttest13.com", "my_password", "+61491570156") VCR.use_cassette("resellers_api_add_client") do # Needs to revisit why getting 400??? def test_add_client() end end assert_equal "OK", response.body["error"]["description"] assert_equal "SUCCESS", response.body["error"]["code"] assert_equal 10, response.body["clients"].length assert_equal 15, response.body["clients_total"] assert_equal 200, response.code response = @api.get_clients() VCR.use_cassette("resellers_api_get_clients") do def test_get_clients() end end assert_equal "OK", response.body["error"]["description"] assert_equal "SUCCESS", response.body["error"]["code"] assert_equal "wefwefwef", response.body["name"] assert_equal 2024, response.body["id"] assert_equal 200, response.code response = @api.get_client(2024) VCR.use_cassette("resellers_api_get_client") do def test_get_client() end @api = ResellersApi.new("15ad266c538fb36c4d90f01055aef494", "moose") def setup()class ResellersApiTest < Test::Unit::TestCaseend c.hook_into :webmock c.cassette_library_dir = "fixtures/vcr_cassettes"VCR.configure do |c|require "vcr"require "test/unit"require "ruby-transmitsms"require "bundler/setup"require "rubygems"