Sha256: fbc1f5d6148619b3602b774779b1c4163e455f1576968d3b99bf41f079e7374e

Contents?: true

Size: 292 Bytes

Versions: 45

Compression:

Stored size: 292 Bytes

Contents

require_relative 'helper'

class MxHeroResponseTest < MiniTest::Unit::TestCase
  def test_sucess
    [200, 201, '200', '201'].each do |success_code|
      response = MxHero::API::Response.new(success_code, '')
      assert response.success?
      assert response.msg == ''
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
mxhero-api-0.1.55 test/test_mxhero_api_response.rb
mxhero-api-0.1.54 test/test_mxhero_api_response.rb
mxhero-api-0.1.53 test/test_mxhero_api_response.rb
mxhero-api-0.1.52 test/test_mxhero_api_response.rb
mxhero-api-0.1.41 test/test_mxhero_api_response.rb
mxhero-api-0.1.40 test/test_mxhero_api_response.rb
mxhero-api-0.1.39 test/test_mxhero_api_response.rb
mxhero-api-0.1.38 test/test_mxhero_api_response.rb
mxhero-api-0.1.37 test/test_mxhero_api_response.rb
mxhero-api-0.1.36 test/test_mxhero_api_response.rb
mxhero-api-0.1.35 test/test_mxhero_api_response.rb
mxhero-api-0.1.34 test/test_mxhero_api_response.rb
mxhero-api-0.1.33 test/test_mxhero_api_response.rb
mxhero-api-0.1.32 test/test_mxhero_api_response.rb
mxhero-api-0.1.31 test/test_mxhero_api_response.rb
mxhero-api-0.1.30 test/test_mxhero_api_response.rb
mxhero-api-0.1.29 test/test_mxhero_api_response.rb
mxhero-api-0.1.28 test/test_mxhero_api_response.rb
mxhero-api-0.1.27 test/test_mxhero_api_response.rb
mxhero-api-0.1.26 test/test_mxhero_api_response.rb