Sha256: 2a42b4d4138d1c66220b6bf10dfd2be64c9f2c7e44b932f865d19dfb549057e9
Contents?: true
Size: 503 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
localeapp-0.0.7 | spec/locale_app/api_call_spec.rb |