Skip to content
Snippets Groups Projects
Commit 4b341dea authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Actually there's no such case

parent a7c823a5
No related branches found
No related tags found
1 merge request!3363Implement #3243 New Issue by email
Loading
@@ -238,15 +238,6 @@ describe Gitlab::Email::Receiver, lib: true do
Loading
@@ -238,15 +238,6 @@ describe Gitlab::Email::Receiver, lib: true do
it "raises a ProjectNotFound if the user is not a member" do it "raises a ProjectNotFound if the user is not a member" do
expect { receiver.execute }.to raise_error(Gitlab::Email::ProjectNotFound) expect { receiver.execute }.to raise_error(Gitlab::Email::ProjectNotFound)
end end
it "raises a UserNotAuthorizedError if the user has no sufficient permission" do
skip("Find a role which can :read_project but can't :create_issue")
project.update(group: create(:group))
project.group.add_guest(user)
expect { receiver.execute }.to raise_error(Gitlab::Email::UserNotAuthorizedError)
end
end end
end end
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment