Sha256: a1227154206f6d0f938b07d98dc6623cdb9491a34c51a0a3fbc40a89d3b3c2af

Contents?: true

Size: 543 Bytes

Versions: 21

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Spree::BackendConfiguration do
  describe '#menu_items' do
    subject do
      described_class.new.menu_items
    end

    describe 'menu tab for stock items' do
      let(:stock_menu_item) do
        subject.detect { |item| item.label == :stock }
      end

      # Regression for https://github.com/solidusio/solidus/issues/2950
      it 'has match_path set to /stock_items' do
        expect(stock_menu_item.match_path).to eq('/stock_items')
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_backend-2.10.5 spec/lib/spree/backend_configuration_spec.rb
solidus_backend-2.10.3 spec/lib/spree/backend_configuration_spec.rb
solidus_backend-2.10.2 spec/lib/spree/backend_configuration_spec.rb
solidus_backend-2.9.6 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.8.6 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.10.1 spec/lib/spree/backend_configuration_spec.rb
solidus_backend-2.9.5 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.10.0 spec/lib/spree/backend_configuration_spec.rb
solidus_backend-2.9.4 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.8.5 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.9.3 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.9.2 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.10.0.beta1 spec/lib/spree/backend_configuration_spec.rb
solidus_backend-2.9.1 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.9.0 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.9.0.rc.1 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.8.4 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.8.3 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.8.2 spec/models/spree/backend_configuration_spec.rb
solidus_backend-2.8.1 spec/models/spree/backend_configuration_spec.rb