From 7909ca2a17ae415805c8931db97e903fe79e511f Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 5 Jul 2014 09:13:53 +1000 Subject: [PATCH] fix spec --- spec/controllers/users_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index a83e51a07..8cbe1f84d 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -1006,6 +1006,7 @@ describe UsersController do let(:user) { Fabricate :user, username: "joecabot", name: "Lawrence Tierney" } before do + ActiveRecord::Base.observers.enable :all Fabricate :post, user: user, topic: topic end @@ -1032,7 +1033,7 @@ describe UsersController do context "when `enable_names` is true" do before do - SiteSetting.stubs(:enable_names?).returns(true) + SiteSetting.enable_names = true end it "returns names" do