Sha256: b3a33c5a4c47449a94b3e7bbb2946b50dec72f1374c6ca9b11746fc3c67fe59c
Contents?: true
Size: 559 Bytes
Versions: 14
Compression:
Stored size: 559 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!(:first_stock_location) { create(:stock_location) } let!(:second_stock_location) { create(:stock_location) } let(:stock_locations) { Spree::StockLocation.all } it 'returns the original stock locations unsorted' do expect(subject.sort).to eq(stock_locations) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems