* Remove obsolete SiteConfig values * Remove DUS * fixup! Remove obsolete SiteConfig values * fixup! Remove obsolete SiteConfig values * Add DUS for removing SiteConfig values * Fix specs * Fix specs * Clean up more DUS * Update DUS * Fix remaining spec * Remove leftover spec * Fix more specs * Fix spec * Remove deprecated spec * Rearrange specs * Temporarily disable specs
30 lines
935 B
Ruby
30 lines
935 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe FeedbackMessagesHelper, type: :helper 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
|