Skip to content

Commit

Permalink
Retira a chamada do TimeHelper de dentro do teste
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Aguilar <lucasaguilar835@gmail.com>
  • Loading branch information
Luckvc and oLucasAguilar committed Feb 1, 2024
1 parent a32d63f commit a620e6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions spec/models/invitation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
expect(invitation.valid?).to be false
expect(invitation.errors[:base]).to include 'Este usuário já faz parte do projeto.'
end

it 'verdadeiro se usuário não for membro do projeto' do
leader = create(:user, cpf: '000.000.001-91')
project = create(:project, user: leader)
Expand Down Expand Up @@ -250,6 +251,7 @@

expect(invitation.expiration_date).to eq 5.days.from_now.to_date
end

it 'data de validade é vazia se expiration_days for vazia' do
invitation = create(:invitation, expiration_days: '', profile_email: 'joão@email.com')

Expand Down
2 changes: 0 additions & 2 deletions spec/system/invitations/user_view_invitation_details_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require 'rails_helper'

describe 'Usuário vê detalhes de um convite' do
include ActiveSupport::Testing::TimeHelpers

it 'a partir da página inicial' do
owner = create :user
project = create :project, user: owner, title: 'Projeto Top', category: 'Video'
Expand Down

0 comments on commit a620e6e

Please sign in to comment.