mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
14 lines
324 B
Ruby
14 lines
324 B
Ruby
require 'spec_helper'
|
|
|
|
module Spree
|
|
describe PaymentMethod do
|
|
it "orders payment methods by name" do
|
|
pm1 = create(:payment_method, name: 'ZZ')
|
|
pm2 = create(:payment_method, name: 'AA')
|
|
pm3 = create(:payment_method, name: 'BB')
|
|
|
|
PaymentMethod.by_name.should == [pm2, pm3, pm1]
|
|
end
|
|
end
|
|
end
|