Sha256: 62f6dc4f7df7d7060e2ab2a851c195763dd69e99aaa2799b5966209b4d842925

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

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

  it "should list the lists for given board" do
    trello_board_mock = mock 'new'
    Trello::Board.should_receive(:new).with('id' => '123').
                  and_return trello_board_mock
    trello_board_mock.stub :lists => ['321']
    ll = TrelloCli::Requests::ListLists.new
    ll.list(:board_id => '123').should == ['321']
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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