-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use timecop to freeze time in tests. Do not allow users to create, view new, view edit or update proposals after the cutoff date.
- Loading branch information
Brett Chalupa
committed
Mar 14, 2014
1 parent
d234219
commit 0d5e4c5
Showing
6 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,4 +67,5 @@ group :test do | |
gem 'capybara', '~> 2.2' | ||
gem 'poltergeist', '~> 1.5' | ||
gem 'launchy' | ||
gem 'timecop' | ||
end |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# Proposals | ||
|
||
Proposals is a Ruby on Rails application that handles Call for Proposals. | ||
Proposals is a Ruby on Rails and Ember application that handles Call for Proposals. | ||
|
||
## Configuring Cutoff Date | ||
|
||
In `application.rb`, set `config.cutoff_date` to the date when proposals close. | ||
For example `config.cutoff_date = "March 17th, 2014".to_date`. Tests use a date | ||
that is 60 days in the future and Timecop to test the future. |
This file contains 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
This file contains 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
This file contains 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