Skip to content

Commit

Permalink
Add spe
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Mar 6, 2024
1 parent 8d69335 commit a48ff7a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
it 'only returns the users own time entries' do
expect(subject).to contain_exactly(user_timer)
end

context 'when user has log_time permission' do
let(:user) { create(:user, member_with_permissions: { project => %i[log_time] }) }

it 'still returns the users own time entries' do
expect(subject).to contain_exactly(user_timer)
end
end
end
end
end

0 comments on commit a48ff7a

Please sign in to comment.