diff options
Diffstat (limited to 'spec/support/helpers/fake_blob_helpers.rb')
-rw-r--r-- | spec/support/helpers/fake_blob_helpers.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/support/helpers/fake_blob_helpers.rb b/spec/support/helpers/fake_blob_helpers.rb index 6c8866deac4..47fb9a345a3 100644 --- a/spec/support/helpers/fake_blob_helpers.rb +++ b/spec/support/helpers/fake_blob_helpers.rb @@ -4,13 +4,14 @@ module FakeBlobHelpers class FakeBlob include BlobLike - attr_reader :path, :size, :data, :lfs_oid, :lfs_size + attr_reader :path, :size, :data, :lfs_oid, :lfs_size, :mode - def initialize(path: 'file.txt', size: 1.kilobyte, data: 'foo', binary: false, lfs: nil) + def initialize(path: 'file.txt', size: 1.kilobyte, data: 'foo', binary: false, lfs: nil, mode: nil) @path = path @size = size @data = data @binary = binary + @mode = mode @lfs_pointer = lfs.present? if @lfs_pointer |