financier 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4acef944cf6ffbdc5c777c207d0a240728b4294f241604e2a27e1b54b4da49c7
4
- data.tar.gz: 78d3272877b1ea47b9ef04c62d61cd8920f41c2a2a36f56764a161cb48045e69
3
+ metadata.gz: 7dc6f09b7afb516a8e8e034c5203e58ebc5a45d853716ebf09ebfc540c5c0d7f
4
+ data.tar.gz: 072b52231735b945cfb067ea854355c1fb45176fb72d86cf74accd09b4c4b9dc
5
5
  SHA512:
6
- metadata.gz: d44ff1f921631eb820a2c8a594c1c1dc85ceb81876f96b143a88611ba213c081bffb341d4e7ce84f976d9c669b22f7202d84e772e98d7cead012e4a3fca26271
7
- data.tar.gz: 4bbd19def0055a54d7fb67ad4eabbe5c5e37ec1cd4d7bdf632578b821ea2187b5de01122f753e3a57c5dfd77c0ad8bbaaf48cc774fef0469976d7767ae397c89
6
+ metadata.gz: bf92aed3ccb8717c900e88b4e1cfc3258f590c5053e865ac98adf6b09d5c0e305cfb03e46d7486dcfbd2e953ea43493d0355beaf263dc98265e797f0b59c515e
7
+ data.tar.gz: 7e364837bd1c7da10a672b5765c2920cdf56f305e483556415f11bfb25933c9355fd3792850ef05dc8de4d8e5e51cba3b868e406ba238b670d14831b3d300ef4
@@ -133,6 +133,6 @@ class Numeric
133
133
  # @see Amortization#new
134
134
  # @api public
135
135
  def amortize(rate, opt = {})
136
- Financier::Amortization.new(self, opt)
136
+ Financier::Amortization.new(self, rate, opt)
137
137
  end
138
138
  end
@@ -1,3 +1,3 @@
1
1
  module Financier
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -8,4 +8,20 @@ describe Financier::Amortization do
8
8
  end
9
9
  end
10
10
  end
11
+
12
+ describe 'Numeric#amortize' do
13
+ subject { 1 }
14
+
15
+ let(:rate) { Financier::Rate.new(0.01, :apr, duration: 3) }
16
+
17
+ it 'responds' do
18
+ expect(subject).to respond_to(:amortize)
19
+ end
20
+
21
+ it 'does not cause an error' do
22
+ expect {
23
+ subject.amortize(rate, closing_date: '01-01-19', first_payment_due: '02-01-19')
24
+ }.to_not raise_error(NoMethodError)
25
+ end
26
+ end
11
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: financier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Barron
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport