Files
openfoodnetwork/spec/models/spree/payment_method_spec.rb
2013-11-21 14:42:28 +11:00

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