Sha256: 9a0934812f18dca41e3f21256bfca092fd715db0196e34cb29a33ba3762c59dc
Contents?: true
Size: 607 Bytes
Versions: 8
Compression:
Stored size: 607 Bytes
Contents
require 'spec_helper' describe TrelloCli::Requests::Shared do before do @object = Object.new @object.extend TrelloCli::Requests::Shared end it "should connect to trello" do trello_configure_mock = double 'trello_configure' Trello.should_receive(:configure).and_yield trello_configure_mock trello_configure_mock.should_receive(:developer_public_key=). with('key') trello_configure_mock.should_receive(:member_token=). with('token') @object.stub :key => 'key', :token => 'token' @object.connect_to_trello end end
Version data entries
8 entries across 8 versions & 1 rubygems