Skip to content

Commit

Permalink
replaced 1 day ago by yesterday
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatiana Soukiassian committed Jul 24, 2015
1 parent 093b518 commit f817144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/message_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def days_plural(days)
when 0
'today'
when 1
"#{days} day ago"
"yesterday"
else
"#{days} days ago"
end
Expand Down
2 changes: 1 addition & 1 deletion spec/message_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
let(:pull_requests) { old_pull_requests }

it 'builds message' do
expect(message_builder.build).to eq("Good morning team! \n\n Here are the pull requests that need to be reviewed today:\n\n1) *whitehall* | mattbostock | updated 5 days ago\n<https://github.com/alphagov/whitehall/pull/2266|[FOR DISCUSSION ONLY] Remove Whitehall.case_study_preview_host> - 1 comment\n2) *whitehall* | tekin | updated 1 day ago\n<https://github.com/alphagov/whitehall/pull/2248|Remove all Import-related code> - 5 comments\n\nMerry reviewing!")
expect(message_builder.build).to eq("Good morning team! \n\n Here are the pull requests that need to be reviewed today:\n\n1) *whitehall* | mattbostock | updated 5 days ago\n<https://github.com/alphagov/whitehall/pull/2266|[FOR DISCUSSION ONLY] Remove Whitehall.case_study_preview_host> - 1 comment\n2) *whitehall* | tekin | updated yesterday\n<https://github.com/alphagov/whitehall/pull/2248|Remove all Import-related code> - 5 comments\n\nMerry reviewing!")
end
end

Expand Down

0 comments on commit f817144

Please sign in to comment.