Sha256: cc6cc80545f28ee021980c4f61e54d27519c5762319fb06e7f051eef8bd112e8

Contents?: true

Size: 605 Bytes

Versions: 3

Compression:

Stored size: 605 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 = mock '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

3 entries across 3 versions & 1 rubygems

Version Path
trello_cli-0.0.3 spec/requests/shared_spec.rb
trello_cli-0.0.2 spec/requests/shared_spec.rb
trello_cli-0.0.1 spec/requests/shared_spec.rb