spec/support/mock_attachment.rb in kt-paperclip-4.4.0 vs spec/support/mock_attachment.rb in kt-paperclip-5.4.0

- old
+ new

@@ -1,8 +1,10 @@ class MockAttachment attr_accessor :updated_at, :original_filename + attr_reader :options def initialize(options = {}) + @options = options @model = options[:model] @responds_to_updated_at = options[:responds_to_updated_at] @updated_at = options[:updated_at] @original_filename = options[:original_filename] end