~vrenaville-c2c/oerpscenario/base_db_testing

« back to all changes in this revision

Viewing changes to features/account/step_definitions/_pre_steps.rb

  • Committer: Vincent Renaville
  • Date: 2010-01-14 11:03:35 UTC
  • mfrom: (33.1.19 OERPScenario)
  • Revision ID: vincent.renaville@camptocamp.com-20100114110335-os6ro1cz03y3ukc2
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
      :view_id => AccountJournalView.find(:first).id,
60
60
      # Take the first sequence with 'Account Journal' code
61
61
      :sequence_id => IrSequence.find(:first, :domain =>[['code','=','Account Journal']]).id,
62
 
      # Take the first cash account for both debit and credit
63
 
      :default_debit_account_id => AccountAccount.find(:first, :domain => [['type','=',type]]).id,
64
 
      :default_credit_account_id => AccountAccount.find(:first, :domain => [['type','=',type]]).id,
 
62
      # Take the first 'other' account for both debit and credit
 
63
      :default_debit_account_id => AccountAccount.find(:first, :domain => [['type','=','other'],]).id,
 
64
      :default_credit_account_id => AccountAccount.find(:first, :domain => [['type','=','other']]).id,
65
65
      :currency => currency_id,
66
66
    })
67
67
    journal.create
68
68
  end
69
 
end
 
 
b'\\ No newline at end of file'
 
69
end
 
70
 
 
71
Given /^the demo data are loaded$/ do
 
72
  IrModuleModule.load_demo_data_on_installed_modules()
 
73
  m=IrModuleModule.find(:first,:domain=>[['name','=','base']])
 
74
  m.should be_true
 
75
  m.demo.should be_true
 
76
end