Skip to content

Commit

Permalink
Add missing test case, if last_login = nil ?
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Aug 9, 2018
1 parent 9524b7a commit b271bc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
subject { user.reasons_for_notifications }

context 'by default' do
it { is_expected.to be_empty }
end

context 'given a last_login timestamp' do
before do
user.update_columns(last_login: Time.current)
end
Expand Down

0 comments on commit b271bc0

Please sign in to comment.