-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spec controller #12
base: master
Are you sure you want to change the base?
Spec controller #12
Conversation
I've prepared a stage to preview changes. Open stage or view logs. |
|
||
FactoryGirl.define do | ||
sequence :published_at do |n| | ||
DateTime.now - n.days |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use DateTime.now
without zone. Use one of Time.zone.now
, DateTime.now.current
, DateTime.now.in_time_zone
, DateTime.now.utc
, DateTime.now.getlocal
, DateTime.now.iso8601
, DateTime.now.jisx0301
, DateTime.now.rfc3339
, DateTime.now.to_i
, DateTime.now.to_f
instead.
context "#index" do | ||
it "renders index template" do | ||
#get :index | ||
#expect(response).to render_template("index") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after #.
Add few test for front-end jobs_controller and and front-end job_applications_controller