Created
December 23, 2013 03:04
-
-
Save sricho/8091200 to your computer and use it in GitHub Desktop.
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 characters
require 'spec_helper' | |
describe Account::ProposalPresenter do | |
subject(:presenter) { Account::ProposalPresenter(user, proposal) } | |
describe '#title' do | |
it 'returns the type of object and who its from' | |
end | |
describe '#description' do | |
it 'returns the description of the proposal' | |
end | |
describe '#buyer_avatar' do | |
it 'returns the avatar url of the buyer' | |
end | |
describe '#price' do | |
it 'returns the price of the proposal' | |
end | |
describe '#turnaround' do | |
it 'returns the turnaround of the proposal' | |
end | |
describe '#accept_path' do | |
it 'returns the url for accepting a proposal' | |
end | |
describe '#can_accept_proposal?' do | |
it 'returns true if the user can accept the proposal' | |
end | |
describe '#can_purchase_proposal?' do | |
it 'returns true if the proposal can be purchased' | |
end | |
describe '#url' do | |
it 'returns the URL for viewing the proposal' | |
end | |
describe '#last_message_body' do | |
it 'returns a truncated description of the proposal' | |
end | |
describe '#last_message_created_at' do | |
it 'returns the created date of the proposal' | |
end | |
describe '#other_user_avatar_url' do | |
it 'returns the url of the other user involved in the proposal' | |
end | |
describe '#other_user_username' do | |
it 'returns the other users username involved in the proposal' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment