Sha256: 57947e0128406741363929f5b8361fcd54835d96add40420e115f6ba838b87bc
Contents?: true
Size: 563 Bytes
Versions: 22
Compression:
Stored size: 563 Bytes
Contents
require "spec_helper" describe PagSeguro::Shipping do let(:shipping) { PagSeguro::Shipping.new } subject { shipping } it { should respond_to(:type_id) } it { should respond_to(:cost) } it { should respond_to(:address) } describe 'presence validations' do it { should validate_presence_of(:address) } end describe 'numericality validations' do it { should validate_numericality_of(:cost).is_greater_than(0) } end describe 'inclusion validations' do it { should ensure_inclusion_of(:type_id).in_array( %w( 1 2 3 ) ) } end end
Version data entries
22 entries across 22 versions & 1 rubygems