spec/factories/hatchy_bank_accounts.rb in hatchy-0.0.6.pre vs spec/factories/hatchy_bank_accounts.rb in hatchy-0.0.7.pre
- old
+ new
@@ -1,6 +1,15 @@
FactoryGirl.define do
factory :hatchy_bank_account, :class => 'Hatchy::BankAccount' do
-
- end
+ account "Foo"
+ account_digit "1"
-end
+ bank do
+ Hatchy::Bank.first || FactoryGirl.create(:hatchy_bank)
+ end
+
+ user do
+ Hatchy::User.first || FactoryGirl.create(:hatchy_user, :without_bank_data)
+ end
+
+ end
+end
\ No newline at end of file