Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
Use #teamops-friendly justification in CAP proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
adelevie committed Apr 29, 2016
1 parent 1492803 commit 5e49623
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/create_cap_proposal.rb
Expand Up @@ -63,7 +63,9 @@ def link_to_product
end

def justification
"To procure software to support an 18F or 18F client project via the micro-purchase platform."
%{
Billable to the '#{@auction.billable_to}' Tock line item.
}
end

def cost_per_unit
Expand Down
1 change: 1 addition & 0 deletions app/models/presenter/auction.rb
Expand Up @@ -13,6 +13,7 @@ def initialize(auction)
end

delegate(
:billable_to,
:created_at,
:delivery_deadline,
:delivery_url,
Expand Down
5 changes: 5 additions & 0 deletions spec/models/create_cap_proposal_spec.rb
Expand Up @@ -31,5 +31,10 @@
url = auction_presenter.winning_bid.bidder.credit_card_form_url
expect(c2_proposal_hash[:additional_info]).to include(url)
end

it 'includes the billable_to field in the justification' do
billable_to = auction.billable_to
expect(c2_proposal_hash[:justification]).to include(billable_to)
end
end
end

0 comments on commit 5e49623

Please sign in to comment.