Sha256: b8383a58600684f9762df02bd058e8b2b6d36fbf703ce6774a72ce04929b3bf2
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
require 'spec_helper' class Client < Rapidash::Client method :test end describe Rapidash::Client do let!(:subject) { Client.new } it "should raise an error when instantiated" do expect { Rapidash::Client.new }.to raise_error(Rapidash::ConfigurationError) end describe ".get" do it "should call request" do subject.should_receive(:request).with(:get, "foo", {}) subject.get("foo") end end describe ".post" do it "should call request" do subject.should_receive(:request).with(:post, "foo", {}) subject.post("foo") end end describe ".put" do it "should call request" do subject.should_receive(:request).with(:put, "foo", {}) subject.put("foo") end end describe ".delete" do it "should call request" do subject.should_receive(:request).with(:delete, "foo", {}) subject.delete("foo") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapidash-0.0.3 | spec/rapidash/client_spec.rb |