Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

cleaner heredoc in acts_as_watchable shared spec

Ivan Kuchinf9cf8b6f4435
diff --git a/spec/support/shared/acts_as_watchable.rb b/spec/support/shared/acts_as_watchable.rb
index 25c4aba132d..1d22dcca14e 100644
--- a/spec/support/shared/acts_as_watchable.rb
+++ b/spec/support/shared/acts_as_watchable.rb
@@ -31,12 +31,12 @@ RSpec.shared_examples_for "acts_as_watchable included" do
unless defined?(model_instance) &&
defined?(watch_permission) &&
defined?(project)
- raise <<MESSAGE
- This share example needs the following objects:
- * model_instance: An instance of the watchable under test
- * watch_permission: The symbol for the permission required for watching an instance
- * project: the project the model_instance is in
-MESSAGE
+ raise <<~MESSAGE
+ This share example needs the following objects:
+ * model_instance: An instance of the watchable under test
+ * watch_permission: The symbol for the permission required for watching an instance
+ * project: the project the model_instance is in
+ MESSAGE
end
end