Sha256: 8f08cb8636031acea498f93c33f71d5ac8ce229983f173503ded9dea04511f6e
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
require 'spec_helper' describe TrelloCli::Requests::CreateCard do before do Trello.should_receive(:configure) end it "should create the requested card" do args = { :name => 'name', :description => 'desc', :board_id => '123', :list_id => '321' } options = { 'name' => args[:name], 'desc' => args[:description], 'idBoard' => args[:board_id], 'idList' => args[:list_id] } trello_card_mock = mock 'trello card' Trello::Card.should_receive(:new). with(options). and_return trello_card_mock trello_card_mock.should_receive(:save) create_card = TrelloCli::Requests::CreateCard.new create_card.create args end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trello_cli-0.0.3 | spec/requests/create_card_spec.rb |
trello_cli-0.0.2 | spec/requests/create_card_spec.rb |
trello_cli-0.0.1 | spec/requests/create_card_spec.rb |