mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:06:32 +08:00
fix incorrect spec
This commit is contained in:
parent
16c61f1eab
commit
aa21969d99
|
@ -22,13 +22,13 @@ shared_examples 'finding and showing post' do
|
||||||
|
|
||||||
it "can't find deleted posts as an anonymous user" do
|
it "can't find deleted posts as an anonymous user" do
|
||||||
xhr :get, action, params
|
xhr :get, action, params
|
||||||
response.should be_forbidden
|
response.status.should == 404
|
||||||
end
|
end
|
||||||
|
|
||||||
it "can't find deleted posts as a regular user" do
|
it "can't find deleted posts as a regular user" do
|
||||||
log_in(:user)
|
log_in(:user)
|
||||||
xhr :get, action, params
|
xhr :get, action, params
|
||||||
response.should be_forbidden
|
response.status.should == 404
|
||||||
end
|
end
|
||||||
|
|
||||||
it "can find posts as a moderator" do
|
it "can find posts as a moderator" do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user