diff options
Diffstat (limited to 'spec/presenters/gitlab/whats_new')
-rw-r--r-- | spec/presenters/gitlab/whats_new/item_presenter_spec.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/presenters/gitlab/whats_new/item_presenter_spec.rb b/spec/presenters/gitlab/whats_new/item_presenter_spec.rb deleted file mode 100644 index 9b04741aa60..00000000000 --- a/spec/presenters/gitlab/whats_new/item_presenter_spec.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe Gitlab::WhatsNew::ItemPresenter do - let(:present) { Gitlab::WhatsNew::ItemPresenter.present(item) } - let(:item) { { "packages" => %w(Core Starter Premium Ultimate) } } - let(:gitlab_com) { true } - - before do - allow(Gitlab).to receive(:com?).and_return(gitlab_com) - end - - describe '.present' do - context 'when on Gitlab.com' do - it 'transforms package names to gitlab.com friendly package names' do - expect(present).to eq({ "packages" => %w(Free Bronze Silver Gold) }) - end - end - - context 'when not on Gitlab.com' do - let(:gitlab_com) { false } - - it 'does not transform package names' do - expect(present).to eq({ "packages" => %w(Core Starter Premium Ultimate) }) - end - end - end -end |