mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:21:12 +08:00
Removed unused let blocks (#7446)
The bodies of these blocks were never evaluated.
This commit is contained in:

committed by
Guo Xiang Tan

parent
17b34f5744
commit
ad44243a57
@ -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)
|
||||
|
Reference in New Issue
Block a user