mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 05:38:13 +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,9 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe UrlValidator do
|
||||
subject(:validate) { validator.validate_each(record, :website, record.website) }
|
||||
|
||||
let(:record) { Fabricate.build(:user_profile, user: Fabricate.build(:user)) }
|
||||
let(:validator) { described_class.new(attributes: :website) }
|
||||
subject(:validate) { validator.validate_each(record, :website, record.website) }
|
||||
|
||||
[
|
||||
"http://https://google.com",
|
||||
|
Reference in New Issue
Block a user