Sha256: e380942168fc93ffc4ab86971d9fe14714a4a912353bb094b30f31fd93221e7c
Contents?: true
Size: 503 Bytes
Versions: 39
Compression:
Stored size: 503 Bytes
Contents
require 'spec_helper' class ApiCallTest include Localeapp::ApiCall end describe Localeapp::ApiCall, "#api_call(endpoint, options = {})" do it "creates an ApiCaller object and tells it to make the call" do api_call_test = ApiCallTest.new api_call = double('api_call') api_call.should_receive(:call).with(api_call_test) Localeapp::ApiCaller.should_receive(:new).with(:endpoint, { :foo => :bar }).and_return(api_call) api_call_test.api_call(:endpoint, { :foo => :bar }) end end
Version data entries
39 entries across 39 versions & 1 rubygems