Sha256: b0254054b12a2d8a43c4e0df01c1c88d43611fbd74a9e757fde04198593ede09
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' describe SimpleShipping::Ups::ShipmentBuilder do it_should_behave_like "builders" describe 'validation' do it 'validates inclusion of service_types' do shipment = SimpleShipping::Shipment.new shipment.stub!(:valid? => true) lambda { SimpleShipping::Ups::ShipmentBuilder.build(shipment, :service_type => :ground) }.should_not raise_error SimpleShipping::ValidationError lambda { SimpleShipping::Ups::ShipmentBuilder.build(shipment, :service_type => :bad) }.should raise_error SimpleShipping::ValidationError end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_shipping-0.4.7 | spec/lib/simple_shipping/ups/shipment_builder_spec.rb |
simple_shipping-0.4.6 | spec/lib/simple_shipping/ups/shipment_builder_spec.rb |