Sha256: 17d121a087bfa2d78067e15c4290cf5f1bdfa11b00364182a3396628a6e6c70e
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
require 'spec_helper' describe TrelloCli::Requests::MoveCard do before do Trello.should_receive(:configure) end it "should move the card to the requested list" do args = { card_id: '123', list_id: '321' } trello_card_mock = double 'trello card' trello_list_mock = double 'trello list' Trello::Card.should_receive(:new). with('id' => args[:card_id]). and_return trello_card_mock Trello::List.should_receive(:find). with(args[:list_id]). and_return trello_list_mock trello_card_mock.should_receive(:move_to_list).with(trello_list_mock). and_return({}.to_json) subject.move(args).should == {} # JSON.parses results end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trello_cli-0.5.0 | spec/requests/move_card_spec.rb |
trello_cli-0.4.1 | spec/requests/move_card_spec.rb |
trello_cli-0.4.0 | spec/requests/move_card_spec.rb |