mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +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
@ -3,8 +3,9 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe ::DiscoursePoll::PollsValidator do
|
||||
subject(:validator) { described_class.new(post) }
|
||||
|
||||
let(:post) { Fabricate(:post) }
|
||||
subject { described_class.new(post) }
|
||||
|
||||
describe "#validate_polls" do
|
||||
it "ensures that polls have valid arguments" do
|
||||
|
Reference in New Issue
Block a user