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

Unpublished auctions should not be available #903

Merged
merged 1 commit into from Jul 19, 2016

Conversation

harrisj
Copy link
Contributor

@harrisj harrisj commented Jul 19, 2016

Fixes #898

Rather than make an integration test for a negative feature, I just added an rspec test to make sure the status available returns false if the auction is not published

@harrisj harrisj force-pushed the unpublished-auctions-are-unavailable branch from 87fbd25 to 3a93603 Compare July 19, 2016 18:51
end
context 'start datetime in past, end datetime in past' do
it 'is false' do
auction = FactoryGirl.build(:auction, :closed)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thoughts on not using FactoryGirl prepend thingy? Seems like we are doing this inconsistently around our test suite.

@jessieay
Copy link
Contributor

great solution! 👍

@jessieay jessieay merged commit d0ee314 into develop Jul 19, 2016
@jessieay jessieay deleted the unpublished-auctions-are-unavailable branch August 22, 2016 17:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants