diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /spec/lib/gitlab/view | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/lib/gitlab/view')
-rw-r--r-- | spec/lib/gitlab/view/presenter/factory_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/view/presenter/factory_spec.rb b/spec/lib/gitlab/view/presenter/factory_spec.rb index 515a1b0a8e4..7bf3c325019 100644 --- a/spec/lib/gitlab/view/presenter/factory_spec.rb +++ b/spec/lib/gitlab/view/presenter/factory_spec.rb @@ -31,11 +31,11 @@ describe Gitlab::View::Presenter::Factory do end it 'uses the presenter_class if given on #initialize' do - MyCustomPresenter = Class.new(described_class) + my_custom_presenter = Class.new(described_class) - presenter = described_class.new(build, presenter_class: MyCustomPresenter).fabricate! + presenter = described_class.new(build, presenter_class: my_custom_presenter).fabricate! - expect(presenter).to be_a(MyCustomPresenter) + expect(presenter).to be_a(my_custom_presenter) end end end |