spec/models/verification/management/email_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [109/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      allow(Mailer).to receive(:email_verification).with(user, user.email, "2", "1", "1234").and_return(mail)

Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(described_class.new(document_type: "1", document_number: "1234", email: user.email)).not_to be_valid

Line is too long. [127/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(described_class.new(document_type: "1", document_number: "1234", email: "inexisting@gmail.com").save).to eq(false)

Prefer using verifying doubles over normal doubles. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles)
Open

      mail = double(:mail)

Line is too long. [111/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    subject { described_class.new(document_type: "1", document_number: "1234", email: "inexisting@gmail.com") }

Line is too long. [102/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      validation = described_class.new(document_type: "1", document_number: "1234", email: user.email)

Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(described_class.new(document_type: "1", document_number: "5678", email: user.email)).not_to be_valid

Line is too long. [125/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(described_class.new(document_type: "1", document_number: "1234", email: "inexisting@gmail.com")).not_to be_valid

Line is too long. [118/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      allow(Devise.token_generator).to receive(:generate).with(User, :email_verification_token).and_return(["1", "2"])

There are no issues that match your filters.

Category
Status