Last active
August 29, 2015 14:05
-
-
Save Electron-libre/03ac188e2e94a8456833 to your computer and use it in GitHub Desktop.
Revisions
-
Electron-libre revised this gist
Aug 28, 2014 . 1 changed file with 19 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ require 'spec_helper' describe Documents::PaymentSummaryPresenter do describe 'deal_paid_deposits' do let(:deal) {double()} let(:deposit) {double()} let(:proxy) {double()} let(:presenter) { Documents::PaymentSummaryPresenter.new(deal) } before(:each) do deal.stub(:deposits){proxy} proxy.stub(:paid) {[deposit]} end it 'select subset of paid deposits ' do deal.should_receive(:deposits) proxy.should_receive(:paid) presenter.deal_paid_deposits end end end -
Electron-libre created this gist
Aug 28, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ require 'spec_helper' describe Documents::PaymentSummaryPresenter do describe 'deal_paid_deposits' do let(:deal) {double()} let(:deposit) {double()} let(:presenter) { Documents::PaymentSummaryPresenter.new(deal) } before(:each) do deal.stub_chain(:deposits, :paid) {[deposit]} end it 'select subset of paid deposits ' do deal.should_receive(:deposits) presenter.deal_paid_deposits end end end