* Softrun rubocop * Hardrun rubocop (-A) * Change a rubocop rule * Add missing cops * Undo & redo rubocop -A
30 lines
920 B
Ruby
30 lines
920 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe FeedbackMessagesHelper do
|
|
describe "#offender_email_details" do
|
|
it "has the proper subject and body" do
|
|
expect(helper.offender_email_details).to include(
|
|
subject: "#{Settings::Community.community_name} Code of Conduct Violation",
|
|
body: a_string_starting_with("Hello"),
|
|
)
|
|
end
|
|
end
|
|
|
|
describe "#reporter_email_details" do
|
|
it "has the proper subject and body" do
|
|
expect(helper.reporter_email_details).to include(
|
|
subject: "#{Settings::Community.community_name} Report",
|
|
body: a_string_starting_with("Hi"),
|
|
)
|
|
end
|
|
end
|
|
|
|
describe "#affected_email_details" do
|
|
it "has the proper subject and body" do
|
|
expect(helper.affected_email_details).to include(
|
|
subject: "Courtesy Notice from #{Settings::Community.community_name}",
|
|
body: a_string_starting_with("Hi"),
|
|
)
|
|
end
|
|
end
|
|
end
|