spec/models/verification/management/email_spec.rb
Line is too long. [109/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
allow(Mailer).to receive(:email_verification).with(user, user.email, "2", "1", "1234").and_return(mail)
- Exclude checks
Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
expect(described_class.new(document_type: "1", document_number: "1234", email: user.email)).not_to be_valid
- Exclude checks
Line is too long. [127/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
expect(described_class.new(document_type: "1", document_number: "1234", email: "inexisting@gmail.com").save).to eq(false)
- Exclude checks
Prefer using verifying doubles over normal doubles. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles) Open
Open
mail = double(:mail)
- Exclude checks
Line is too long. [111/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
subject { described_class.new(document_type: "1", document_number: "1234", email: "inexisting@gmail.com") }
- Exclude checks
Line is too long. [102/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
validation = described_class.new(document_type: "1", document_number: "1234", email: user.email)
- Exclude checks
Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
expect(described_class.new(document_type: "1", document_number: "5678", email: user.email)).not_to be_valid
- Exclude checks
Line is too long. [125/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
expect(described_class.new(document_type: "1", document_number: "1234", email: "inexisting@gmail.com")).not_to be_valid
- Exclude checks
Line is too long. [118/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
allow(Devise.token_generator).to receive(:generate).with(User, :email_verification_token).and_return(["1", "2"])
- Exclude checks