mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 12:40:40 +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
|
||||
xhr :get, action, params
|
||||
response.should be_forbidden
|
||||
response.status.should == 404
|
||||
end
|
||||
|
||||
it "can't find deleted posts as a regular user" do
|
||||
log_in(:user)
|
||||
xhr :get, action, params
|
||||
response.should be_forbidden
|
||||
response.status.should == 404
|
||||
end
|
||||
|
||||
it "can find posts as a moderator" do
|
||||
|
|
Loading…
Reference in New Issue
Block a user