<commit_before>require "rails_helper"

RSpec.describe UserMailer, :type => :mailer do
  pending "add some examples to (or delete) #{__FILE__}"
end<commit_msg>add specs<commit_after>require "rails_helper"

RSpec.describe UserMailer, :type => :mailer do
	let(:user) { build :user }
	let(:mail) { UserMailer.notify_role_change(user) }

	it 'send email whit subject' do
		expect(mail.subject).to eql(I18n.t("user_mailer.change_permission.subject"))
	end

  it 'renders the receiver email' do
    expect(mail.to).to eql([user.email])
  end

	it 'renders the sender email' do
    expect(mail.from).to eql(['<EMAIL>'])
  end

	it 'assigns @name' do
		expect(mail.body.encoded).to match(user.name)
	end
end
{'fraction_non_alphanumeric': 0.1346704871060172, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 4.873949579831932, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5194885', 'n_tokens_mistral': 262, 'n_tokens_neox': 248, 'n_words': 63}