docbrown/spec/helpers/feedback_messages_helper_spec.rb
Mac Siri 842e6880b8
Routine rubocop fix on /spec (#19217)
* Softrun rubocop

* Hardrun rubocop (-A)

* Change a rubocop rule

* Add missing cops

* Undo & redo rubocop -A
2023-03-21 09:55:26 -04:00

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