forked from fredlee/mydotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.irbrc
37 lines (30 loc) · 965 Bytes
/
.irbrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#require 'interactive_editor'
require 'rubygems'
# Automatic Indentation
IRB.conf[:AUTO_INDENT] = true
# Remove the annoying irb(main):001:0 and replace with >>
IRB.conf[:PROMPT_MODE] = :SIMPLE
# Save History between irb sessions
require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 500
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.pry_history"
require "awesome_print"
AwesomePrint.irb!
def issued_loan
require 'suite'
@l = Suite::QuickCustomer.customer_with_issued_loan(:brand => :GB, :loan_type_cd => 'oec')
end
def oec_loan
require 'suite'
require 'rspec'
require 'test/oec_test_case'
tc = OecTestCase.new
tc.initial_draw_amount = 200
Ddi.create_from_session!(tc.customer,
"line1", "line2", "city",
"zip", "bank_name", "manager_name",
tc.customer.current_service_user_number)
#tc.coupon_code = "NEWCASH25"
#tc.take_loan_to_second_statement
tc.loan
end