mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Use proper wording for contexts in specs
This commit is contained in:
committed by
Loïc Guitaut
parent
02987e05d5
commit
3eaac56797
@@ -2,7 +2,7 @@
|
||||
|
||||
RSpec.describe BasicPostSerializer do
|
||||
|
||||
context "name" do
|
||||
describe "#name" do
|
||||
let(:user) { Fabricate.build(:user) }
|
||||
let(:post) { Fabricate.build(:post, user: user) }
|
||||
let(:serializer) { BasicPostSerializer.new(post, scope: Guardian.new, root: false) }
|
||||
@@ -17,7 +17,5 @@ RSpec.describe BasicPostSerializer do
|
||||
SiteSetting.enable_names = false
|
||||
expect(json[:name]).to be_blank
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user