Files
grecia/spec/mailers/devise_mailer_spec.rb
Bertocq 265d4d0967 Enables RSpec/DescribedClass cop & fixes all issues
Autocorrection for existing issues, and stashing at .rubocop_todo.yml
the false positives

Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
2018-01-07 00:38:19 +01:00

17 lines
382 B
Ruby

# coding: utf-8
require 'rails_helper'
describe DeviseMailer do
describe "#confirmation_instructions" do
it "sends emails in the user's locale" do
user = create(:user, locale: "es")
email = I18n.with_locale :en do
described_class.confirmation_instructions(user, "ABC")
end
expect(email.subject).to include("confirmación")
end
end
end