diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-20 18:34:57 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:26 -0500 |
commit | fed9dcd9ed2f064e887332b4e45f2e65465e74c0 (patch) | |
tree | edea7e28e504b1a1b0a593c1308783e5bd098077 /app/models | |
parent | 0cfb38194c32547b0e6cbcbfcc06f96f2ec05ffb (diff) | |
download | gitlab-ce-fed9dcd9ed2f064e887332b4e45f2e65465e74c0.tar.gz |
Add test stubs
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/blob.rb | 4 |
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) |