fix spec
This commit is contained in:
parent
cf60bed719
commit
7909ca2a17
|
@ -1006,6 +1006,7 @@ describe UsersController do
|
||||||
let(:user) { Fabricate :user, username: "joecabot", name: "Lawrence Tierney" }
|
let(:user) { Fabricate :user, username: "joecabot", name: "Lawrence Tierney" }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
ActiveRecord::Base.observers.enable :all
|
||||||
Fabricate :post, user: user, topic: topic
|
Fabricate :post, user: user, topic: topic
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1032,7 +1033,7 @@ describe UsersController do
|
||||||
|
|
||||||
context "when `enable_names` is true" do
|
context "when `enable_names` is true" do
|
||||||
before do
|
before do
|
||||||
SiteSetting.stubs(:enable_names?).returns(true)
|
SiteSetting.enable_names = true
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns names" do
|
it "returns names" do
|
||||||
|
|
Loading…
Reference in New Issue