From aa21969d9990eb6664108c9b80360ad0bff0c840 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 11 Sep 2014 11:31:31 +1000 Subject: [PATCH] fix incorrect spec --- spec/controllers/posts_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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