Sha256: beec1dc7b60af5c68473b4f1d7d7cf6fe850b780bf9d85a20d66c86c72919591

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

require 'test/unit'
require_relative '../lib/allegro_api_client'

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.3 test/test_git_repository_commit.rb