Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-21 02:34:57 +0300
committerDouwe Maan <douwe@selenight.nl>2017-04-27 20:23:26 +0300
commitfed9dcd9ed2f064e887332b4e45f2e65465e74c0 (patch)
treeedea7e28e504b1a1b0a593c1308783e5bd098077 /app/models/blob.rb
parent0cfb38194c32547b0e6cbcbfcc06f96f2ec05ffb (diff)
Add test stubs
Diffstat (limited to 'app/models/blob.rb')
-rw-r--r--app/models/blob.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb
index 26ee2c883a0..1bb9ed03c11 100644
--- a/app/models/blob.rb
+++ b/app/models/blob.rb
@@ -28,13 +28,13 @@ class Blob < SimpleDelegator
#
# blob = Blob.decorate(nil)
# puts "truthy" if blob # No output
- def self.decorate(blob, project)
+ def self.decorate(blob, project = nil)
return if blob.nil?
new(blob, project)
end
- def initialize(blob, project)
+ def initialize(blob, project = nil)
@project = project
super(blob)