Sha256: 96a5c5178475fbc0046cbe4e28b22dd8d553651e3d538f6a008fb92ceedbba9a
Contents?: true
Size: 583 Bytes
Versions: 27
Compression:
Stored size: 583 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe ShopShipping do dataset :shop_addresses, :shop_orders describe 'scope' do before :each do @address = ShopShipping.new end it 'should have a of_type of shipping' do @address.of_type.should == 'shipping' end end describe 'validations' do before :each do @address = shop_shippings(:order_shipping) end context 'email' do it 'should not require' do @address.email = nil @address.valid?.should be_true end end end end
Version data entries
27 entries across 27 versions & 1 rubygems