diff --git a/spec/controllers/posts_controller_spec.rb b/spec/controllers/posts_controller_spec.rb index 9fe83fec40c..cadc660ac03 100644 --- a/spec/controllers/posts_controller_spec.rb +++ b/spec/controllers/posts_controller_spec.rb @@ -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