Sha256: 8db34494165700d174f762eea1e4a5f48abb63b475dc42724dcce8daa4679273
Contents?: true
Size: 574 Bytes
Versions: 27
Compression:
Stored size: 574 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe ShopBilling do dataset :shop_addresses, :shop_orders describe 'scope' do before :each do @address = ShopBilling.new end it 'should have a of_type of billing' do @address.of_type.should == 'billing' end end describe 'validations' do before :each do @address = shop_billings(:order_billing) end context 'email' do it 'should require' do @address.email = nil @address.valid?.should be_false end end end end
Version data entries
27 entries across 27 versions & 1 rubygems