Sha256: 9738ef8f6be98d0f857ab627fd0e7aee26cb5a3064753925707ebcfba4966166

Contents?: true

Size: 468 Bytes

Versions: 21

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

module Spree
  module Stock
    module LocationSorter
      RSpec.describe Unsorted, type: :model do
        subject { described_class.new(stock_locations) }

        let(:stock_locations) { instance_double('Spree::StockLocation::ActiveRecord_Relation') }

        it 'returns the original stock locations unsorted' do
          expect(subject.sort).to eq(stock_locations)
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
solidus_core-2.8.6 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core-2.8.5 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core-2.8.4 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core-2.8.3 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core-2.8.2 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core-2.8.1 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core-2.8.0 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.14 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.13 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.12 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.11 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.10 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.9 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.8 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.7 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.6 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.5 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.4 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.3 spec/models/spree/stock/location_sorter/unsorted_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.1 spec/models/spree/stock/location_sorter/unsorted_spec.rb