Sha256: d1b538c04f4997f65eeadf259d7b5086e44eb505bccf25fddb29855f888244fb
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :base_gringotts_attempt, :class => 'Gringotts::Attempt' do vault_id { FactoryGirl.create(:good_gringotts_vault).id } factory :bad_without_code_attempt do code_received nil end factory :good_gringotts_attempt do code_received { FactoryGirl.create(:good_gringotts_code).value } end factory :successful_gringotts_attempt do code_received { FactoryGirl.create(:good_gringotts_code).value } successful true end factory :unsuccessful_gringotts_attempt do code_received "F4!L" successful false end factory :stale_gringotts_attempt do code_received { FactoryGirl.create(:stale_gringotts_code).value } end factory :used_gringotts_attempt do code_received { FactoryGirl.create(:successful_gringotts_attempt).code_received } end factory :bad_without_vault_attempt do vault_id nil code_received "12345" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gringotts-0.6.7 | spec/factories/gringotts_attempts.rb |
gringotts-0.6.5 | spec/factories/gringotts_attempts.rb |