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.94.8 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.7 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.6 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.5 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.4 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.3 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.2 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.1 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.94.0 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.93.3 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.93.2 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.93.1 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.93.0 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.11 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.10 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.9 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.8 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.7 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.6 spec/models/shop_billing_spec.rb
radiant-shop-extension-0.92.3 spec/models/shop_billing_spec.rb