Sha256: e4c6d2d7b1602575e427d3caeaf62277d72ca51d040f6248523fd62041b94fdc
Contents?: true
Size: 659 Bytes
Versions: 7
Compression:
Stored size: 659 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) module Loquor class ClientTest < Minitest::Test def test_initialize_should_create_config Configuration.expects(:new) Client.new end def test_get_calls_gets url = "foobar" client = Client.new deps = {config: client.config} HttpAction::Get.expects(:get).with(url, deps) client.get(url) end def test_post_calls_posts url = "foobar" payload = {x: true} client = Client.new deps = {config: client.config} HttpAction::Post.expects(:post).with(url, payload, deps) client.post(url, payload) end end end
Version data entries
7 entries across 7 versions & 1 rubygems