mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Removed unused let blocks (#7446)
The bodies of these blocks were never evaluated.
This commit is contained in:
parent
17b34f5744
commit
ad44243a57
34 changed files with 0 additions and 74 deletions
|
@ -1,11 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe EmailValidator do
|
||||
|
||||
let(:record) {}
|
||||
let(:validator) { described_class.new(attributes: :email) }
|
||||
subject(:validate) { validator.validate_each(record, :email, record.email) }
|
||||
|
||||
def blocks?(email)
|
||||
user = Fabricate.build(:user, email: email)
|
||||
validator = EmailValidator.new(attributes: :email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue