Sha256: 063100511c1673678552e41491f72f6797baa13aa1920d103295c153cd835405
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :base_gringotts_delivery, :class => 'Gringotts::Delivery' do vault_id { FactoryGirl.create(:good_gringotts_vault_with_phone_number).id } factory :good_gringotts_delivery do strategy_class "Gringotts::DeliveryStrategies::TestStubStrategy" end factory :error_raising_gringotts_delivery do strategy_class "Gringotts::DeliveryStrategies::ErrorRaisingStrategy" end factory :bad_invalid_strategy_gringotts_delivery do strategy_class "Gringotts::DeliveryStrategies::DoesNotExistStrategy" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gringotts-0.6.7 | spec/factories/gringotts_deliveries.rb |
gringotts-0.6.5 | spec/factories/gringotts_deliveries.rb |