Skip to content

Instantly share code, notes, and snippets.

@adelevie
Created January 22, 2016 20:32
Show Gist options
  • Select an option

  • Save adelevie/1217d6bb08ecba2802f0 to your computer and use it in GitHub Desktop.

Select an option

Save adelevie/1217d6bb08ecba2802f0 to your computer and use it in GitHub Desktop.
require 'rails_helper'
RSpec.describe Presenter::Bid do
let(:ar_bid) { FactoryGirl.create(:bid) }
let(:bid) { Presenter::Bid.new(ar_bid) }
describe '#veiled_bidder' do
context 'when there is an authenticated user' do
context 'when the auction is in-progress' do
it 'should unveil only information about the authenticated user' do
end
end
context 'when the auction has ended' do
it 'should unveil information about all bidders' do
end
end
end
context 'when there is not an authenticated user' do
context 'when the auction is in-progress' do
it 'should unveil nothing' do
end
end
context 'when the auction has ended' do
it 'should unveil information about all bidders' do
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment