Sha256: 6b0c35d65530be4a490c4bda80ecaa88c21d40b5a013560be0d536370e5d068f

Contents?: true

Size: 620 Bytes

Versions: 2

Compression:

Stored size: 620 Bytes

Contents

require 'spec_helper'

describe TrelloCli::Requests::ListCards do
  before do
    Trello.should_receive(:configure)
  end

  it "should create the requested card" do
    args = { :board_id    => '123',
             :list_id     => '321' }
    options = { 'idBoard' => args[:board_id],
                'id'      => args[:list_id] }
    trello_list_mock = mock 'trello list'
    Trello::List.should_receive(:new).
                 with(options).
                 and_return trello_list_mock
    trello_list_mock.should_receive(:cards)
    list_cards = TrelloCli::Requests::ListCards.new
    list_cards.list args
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trello_cli-0.0.3 spec/requests/list_card_spec.rb
trello_cli-0.0.2 spec/requests/list_card_spec.rb