Prefabricate trust_level_4

This commit is contained in:
Daniel Waterworth 2019-05-06 16:20:48 +01:00 committed by Robin Ward
parent f984c1740f
commit 0578809460
1 changed files with 3 additions and 1 deletions

View File

@ -1215,8 +1215,10 @@ describe PostsController do
end end
context "TL4 users" do context "TL4 users" do
fab!(:trust_level_4) { Fabricate(:trust_level_4) }
before do before do
sign_in(Fabricate(:trust_level_4)) sign_in(trust_level_4)
end end
include_examples "it works" include_examples "it works"