summaryrefslogtreecommitdiff
path: root/spec/support/helpers/fake_blob_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/fake_blob_helpers.rb')
-rw-r--r--spec/support/helpers/fake_blob_helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/helpers/fake_blob_helpers.rb b/spec/support/helpers/fake_blob_helpers.rb
index ef4740638ff..a7eafb0fd23 100644
--- a/spec/support/helpers/fake_blob_helpers.rb
+++ b/spec/support/helpers/fake_blob_helpers.rb
@@ -37,6 +37,8 @@ module FakeBlobHelpers
end
def fake_blob(**kwargs)
- Blob.decorate(FakeBlob.new(**kwargs), project)
+ container = kwargs.delete(:container) || project
+
+ Blob.decorate(FakeBlob.new(**kwargs), container)
end
end