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_devise_token_auth-2.8.0.alpha.0 spec/models/spree/stock/location_sorter/unsorted_spec.rb