lib/decidim/dev/test/rspec_support/attachment_helpers.rb in decidim-dev-0.14.4 vs lib/decidim/dev/test/rspec_support/attachment_helpers.rb in decidim-dev-0.15.0
- old
+ new
@@ -8,5 +8,9 @@
# attachment file size presentation can change more easily.
def attachment_file_size(attachment)
ActiveSupport::NumberHelper.number_to_human_size(attachment.file_size)
end
end
+
+RSpec.configure do |config|
+ config.include AttachmentHelpers
+end