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

Version Path
radiant-shop-extension-0.92.2 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.1 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.0 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.91.7 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.91.4 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.91.3 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.91.2 spec/models/shop_billing_spec.rb