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

Version Path
radiant-shop-extension-0.94.8 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.7 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.6 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.5 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.4 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.3 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.2 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.1 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.94.0 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.93.3 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.93.2 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.93.1 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.93.0 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.92.11 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.92.10 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.92.9 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.92.8 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.92.7 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.92.6 spec/models/shop_shipping_spec.rb
radiant-shop-extension-0.92.3 spec/models/shop_shipping_spec.rb