Sha256: 38cab549b8384674e2838b20ed30286159841ef6813914585773db4fbe310be0

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__),'..', 'spec_helper'))

class AdminApiClientProxyTest
  include Trigga::AdminApiClient::Proxies::Admin
end

describe Trigga::AdminApiClient::Proxies::Admin do
  describe "get_stats" do
    before do
      @opts = {:abc => 123}  
    end
    
    it "should call make_call" do
      Trigga::AdminApiClient.should_receive(:make_call).with("admin","stats",@opts)
      AdminApiClientProxyTest.new.get_stats @opts
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itrigga-admin_api_client-0.1.1 spec/proxies/admin_spec.rb