Sha256: 05800f3c9d19fa0b8d5af3e49c3b8922fa9bee5e12f11e1c1c3325d432dd9aa7

Contents?: true

Size: 567 Bytes

Versions: 8

Compression:

Stored size: 567 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 = double 'trello list'
    Trello::List.should_receive(:new).
                 with(options).
                 and_return trello_list_mock
    trello_list_mock.should_receive(:cards)
    subject.list args
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trello_cli-0.5.0 spec/requests/list_card_spec.rb
trello_cli-0.4.1 spec/requests/list_card_spec.rb
trello_cli-0.4.0 spec/requests/list_card_spec.rb
trello_cli-0.3.0 spec/requests/list_card_spec.rb
trello_cli-0.2.1 spec/requests/list_card_spec.rb
trello_cli-0.2.0 spec/requests/list_card_spec.rb
trello_cli-0.1.0 spec/requests/list_card_spec.rb
trello_cli-0.0.4 spec/requests/list_card_spec.rb