Skip to content

Commit

Permalink
Corrige teste com tempo
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas GO Aguilar <[email protected]>
  • Loading branch information
fredericomozzato and oLucasAguilar committed Feb 15, 2024
1 parent 3a1f3a5 commit e3cd0c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/helpers/invitation_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
end

it 'retorna tempo em dias para expiração do convite' do
invitation = create :invitation, expiration_days: 5
travel_to Time.zone.now.beginning_of_day do
invitation = create :invitation, expiration_days: 5

expect(invitation_expiration_date(invitation)).to eq 'Expira em 4 dias'
expect(invitation_expiration_date(invitation)).to eq 'Expira em 5 dias'
end
end
end
end

0 comments on commit e3cd0c0

Please sign in to comment.