Sha256: f68416d0167ab977efdc69bdf06aabf590fce3e1c81e577fd9968679828b7707

Contents?: true

Size: 447 Bytes

Versions: 48

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

class FakesController < ApplicationController
  include Spree::Core::ControllerHelpers::Store
end

RSpec.describe Spree::Core::ControllerHelpers::Store, type: :controller do
  controller(FakesController) {}

  describe '#current_store' do
    let!(:store) { create :store, default: true }
    it 'returns current store' do
      expect(controller.current_store).to eq store
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.10.5 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.10.3 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.10.2 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.6 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.8.6 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.10.1 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.5 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.10.0 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.4 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.6.6 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.7.4 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.8.5 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.3 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.2 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.10.0.beta1 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.7.3 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.6.5 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.1 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.0 spec/lib/spree/core/controller_helpers/store_spec.rb
solidus_core-2.9.0.rc.1 spec/lib/spree/core/controller_helpers/store_spec.rb