mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 01:55:46 +08:00
DEV: Update the rubocop-discourse gem
This enables cops related to RSpec `subject`. See https://github.com/discourse/rubocop-discourse/pull/32
This commit is contained in:

committed by
Loïc Guitaut

parent
8e1d049e6b
commit
0f4beab0fb
@ -1,14 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe AdminPluginSerializer do
|
||||
let(:instance) { Plugin::Instance.new }
|
||||
subject(:serializer) { described_class.new(instance) }
|
||||
|
||||
subject { described_class.new(instance) }
|
||||
let(:instance) { Plugin::Instance.new }
|
||||
|
||||
describe "enabled_setting" do
|
||||
it "should return the right value" do
|
||||
instance.enabled_site_setting("test")
|
||||
expect(subject.enabled_setting).to eq("test")
|
||||
expect(serializer.enabled_setting).to eq("test")
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user