Sha256: fbde27820fd47ddafa66e9dd40b1c47cda7872561ca4be891666bec55ed34912

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

require 'test/unit'
require_relative '../src/APIClient'

class APIClientTests < Test::Unit::TestCase
  def test_get
    api_client = APIClient.new http_client:self
    api_client.get(path:'/bob face')
    assert_equal('https://allegro-test-database.herokuapp.com/bob%20face',@path)
  end

  def get(path, options)
  	@path = path
  	return self
  end

  def body
  	{}.to_json
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
allegro_api_client-0.0.1 test/test_git_repository_commit.rb