diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-08-30 14:51:32 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-09-11 13:45:49 +0300 |
commit | 517ee9fd04048ee82a22c4398f068a502c1357bf (patch) | |
tree | de967c2910a873d67a3264108e7db52574e0fae4 /spec/lib/gitlab/patch | |
parent | 71fefe147475bb85c67de95fba8211385cfb0a79 (diff) |
Fix Override. Properly define prepended
We should never be sloppy!
Diffstat (limited to 'spec/lib/gitlab/patch')
-rw-r--r-- | spec/lib/gitlab/patch/prependable_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/patch/prependable_spec.rb b/spec/lib/gitlab/patch/prependable_spec.rb index 1c90a24c0e8..32222544e46 100644 --- a/spec/lib/gitlab/patch/prependable_spec.rb +++ b/spec/lib/gitlab/patch/prependable_spec.rb @@ -23,7 +23,7 @@ describe Gitlab::Patch::Prependable do this = self prepended do - prepended_modules_ << this + prepended_modules_ << [self, this] end def name @@ -48,7 +48,7 @@ describe Gitlab::Patch::Prependable do this = self prepended do - prepended_modules_ << this + prepended_modules_ << [self, this] end def name @@ -71,7 +71,7 @@ describe Gitlab::Patch::Prependable do subject - expect(prepended_modules).to eq([ee, ce]) + expect(prepended_modules).to eq([[subject, ee], [subject, ce]]) end end @@ -86,7 +86,7 @@ describe Gitlab::Patch::Prependable do it 'prepends only once' do subject.prepend(ce) - expect(prepended_modules).to eq([ee, ce]) + expect(prepended_modules).to eq([[subject, ee], [subject, ce]]) end end @@ -115,7 +115,7 @@ describe Gitlab::Patch::Prependable do it 'prepends only once' do subject.prepend(ee) - expect(prepended_modules).to eq([ee]) + expect(prepended_modules).to eq([[subject, ee]]) end end end |