plutus 0.11.0 → 0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.markdown +66 -40
- data/app/assets/javascripts/plutus/application.js +5 -4
- data/app/assets/javascripts/plutus/reports.js +5 -0
- data/app/assets/stylesheets/bootstrap-theme.min.css +5 -0
- data/app/assets/stylesheets/bootstrap.min.css +5 -0
- data/app/assets/stylesheets/plutus/application.css +11 -5
- data/app/controllers/plutus/accounts_controller.rb +1 -16
- data/app/controllers/plutus/application_controller.rb +4 -0
- data/app/controllers/plutus/entries_controller.rb +7 -17
- data/app/controllers/plutus/reports_controller.rb +40 -0
- data/app/models/plutus/account.rb +92 -7
- data/app/models/plutus/amount.rb +2 -11
- data/app/models/plutus/amounts_extension.rb +31 -6
- data/app/models/plutus/asset.rb +21 -18
- data/app/models/plutus/entry.rb +15 -3
- data/app/models/plutus/equity.rb +22 -19
- data/app/models/plutus/expense.rb +21 -18
- data/app/models/plutus/liability.rb +27 -19
- data/app/models/plutus/revenue.rb +22 -19
- data/app/models/plutus/tenancy.rb +5 -1
- data/app/views/layouts/plutus/_messages.html.erb +9 -0
- data/app/views/layouts/plutus/_navigation.html.erb +19 -0
- data/app/views/layouts/plutus/_navigation_links.html.erb +5 -0
- data/app/views/layouts/plutus/application.html.erb +19 -0
- data/app/views/plutus/accounts/index.html.erb +9 -12
- data/app/views/plutus/entries/index.html.erb +22 -11
- data/app/views/plutus/reports/_account.html.erb +28 -0
- data/app/views/plutus/reports/balance_sheet.html.erb +21 -0
- data/app/views/plutus/reports/income_statement.html.erb +24 -0
- data/config/routes.rb +6 -3
- data/{lib/generators/plutus/templates/migration.rb → db/migrate/20160422010135_create_plutus_tables.rb} +6 -10
- data/lib/generators/plutus/add_date_upgrade_generator.rb +11 -0
- data/lib/generators/plutus/base_generator.rb +19 -0
- data/lib/generators/plutus/plutus_generator.rb +8 -22
- data/lib/generators/plutus/templates/add_date_migration.rb +12 -0
- data/lib/generators/plutus/templates/tenant_migration.rb +1 -1
- data/lib/generators/plutus/templates/update_migration.rb +2 -2
- data/lib/generators/plutus/tenancy_generator.rb +2 -17
- data/lib/generators/plutus/upgrade_plutus_generator.rb +6 -22
- data/lib/plutus.rb +2 -5
- data/lib/plutus/engine.rb +5 -0
- data/lib/plutus/version.rb +1 -1
- data/spec/controllers/accounts_controller_spec.rb +11 -20
- data/spec/controllers/entries_controller_spec.rb +11 -20
- data/spec/controllers/reports_controller_spec.rb +24 -0
- data/spec/factories/account_factory.rb +6 -6
- data/spec/factories/amount_factory.rb +3 -3
- data/spec/factories/entry_factory.rb +1 -1
- data/spec/factories/tenant_factory.rb +12 -0
- data/spec/models/account_spec.rb +71 -8
- data/spec/models/amount_spec.rb +6 -1
- data/spec/models/entry_spec.rb +35 -63
- data/spec/models/tenancy_spec.rb +26 -8
- data/spec/routing/accounts_routing_spec.rb +6 -25
- data/spec/routing/entries_routing_spec.rb +6 -25
- data/spec/spec_helper.rb +4 -2
- data/spec/support/account_shared_examples.rb +14 -10
- data/spec/support/amount_shared_examples.rb +4 -4
- data/spec/support/shoulda_matchers.rb +8 -0
- metadata +100 -28
- data/app/views/plutus/accounts/show.html.erb +0 -59
- data/app/views/plutus/entries/show.html.erb +0 -46
- data/spec/schema.rb +0 -31
data/spec/models/tenancy_spec.rb
CHANGED
@@ -3,12 +3,27 @@ require 'spec_helper'
|
|
3
3
|
module Plutus
|
4
4
|
describe Account do
|
5
5
|
describe 'tenancy support' do
|
6
|
+
|
7
|
+
before(:all) do
|
8
|
+
m = ActiveRecord::Migration.new
|
9
|
+
m.verbose = false
|
10
|
+
m.create_table :plutus_tenants do |t|
|
11
|
+
t.string :name
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
after :all do
|
16
|
+
m = ActiveRecord::Migration.new
|
17
|
+
m.verbose = false
|
18
|
+
m.drop_table :plutus_tenants
|
19
|
+
end
|
20
|
+
|
6
21
|
before(:each) do
|
7
22
|
ActiveSupportHelpers.clear_model('Account')
|
8
23
|
ActiveSupportHelpers.clear_model('Asset')
|
9
24
|
|
10
25
|
Plutus.enable_tenancy = true
|
11
|
-
Plutus.tenant_class = 'Plutus::
|
26
|
+
Plutus.tenant_class = 'Plutus::Tenant'
|
12
27
|
|
13
28
|
FactoryGirlHelpers.reload()
|
14
29
|
Plutus::Asset.new
|
@@ -27,18 +42,21 @@ module Plutus
|
|
27
42
|
end
|
28
43
|
|
29
44
|
it 'validate uniqueness of name scoped to tenant' do
|
30
|
-
|
45
|
+
tenant = FactoryGirl.create(:tenant)
|
46
|
+
account = FactoryGirl.create(:asset, tenant: tenant)
|
31
47
|
|
32
|
-
record = FactoryGirl.build(:asset, name: account.name,
|
33
|
-
record.
|
34
|
-
record.errors[:name].
|
48
|
+
record = FactoryGirl.build(:asset, name: account.name, tenant: tenant)
|
49
|
+
expect(record).not_to be_valid
|
50
|
+
expect(record.errors[:name]).to eq(['has already been taken'])
|
35
51
|
end
|
36
52
|
|
37
53
|
it 'allows same name scoped under a different tenant' do
|
38
|
-
|
54
|
+
tenant_1 = FactoryGirl.create(:tenant)
|
55
|
+
tenant_2 = FactoryGirl.create(:tenant)
|
56
|
+
account = FactoryGirl.create(:asset, tenant: tenant_1)
|
39
57
|
|
40
|
-
record = FactoryGirl.build(:asset, name: account.name,
|
41
|
-
record.
|
58
|
+
record = FactoryGirl.build(:asset, name: account.name, tenant: tenant_2)
|
59
|
+
expect(record).to be_valid
|
42
60
|
end
|
43
61
|
end
|
44
62
|
end
|
@@ -2,31 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Plutus
|
4
4
|
describe AccountsController do
|
5
|
-
|
6
|
-
#describe "routing" do
|
7
|
-
#it "recognizes and generates #index" do
|
8
|
-
#{ :get => "/accounts" }.should route_to(:controller => "accounts", :action => "index")
|
9
|
-
#end
|
5
|
+
routes { Plutus::Engine.routes }
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
#{ :get => "/accounts/1/edit" }.should_not be_routable
|
17
|
-
#end
|
18
|
-
|
19
|
-
#it "recognizes and generates #create" do
|
20
|
-
#{ :post => "/accounts" }.should_not be_routable
|
21
|
-
#end
|
22
|
-
|
23
|
-
#it "recognizes and generates #update" do
|
24
|
-
#{ :put => "/accounts/1" }.should_not be_routable
|
25
|
-
#end
|
26
|
-
|
27
|
-
#it "recognizes and generates #destroy" do
|
28
|
-
#{ :delete => "/accounts/1" }.should_not be_routable
|
29
|
-
#end
|
30
|
-
#end
|
7
|
+
describe "routing" do
|
8
|
+
it "recognizes and generates #index" do
|
9
|
+
expect(:get => "/accounts").to route_to(:controller => "plutus/accounts", :action => "index")
|
10
|
+
end
|
11
|
+
end
|
31
12
|
end
|
32
13
|
end
|
@@ -2,31 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Plutus
|
4
4
|
describe EntriesController do
|
5
|
-
|
6
|
-
#describe "routing" do
|
7
|
-
#it "recognizes and generates #index" do
|
8
|
-
#{ :get => "/entries" }.should route_to(:controller => "entries", :action => "index")
|
9
|
-
#end
|
5
|
+
routes { Plutus::Engine.routes }
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
#{ :get => "/entries/1/edit" }.should_not be_routable
|
17
|
-
#end
|
18
|
-
|
19
|
-
#it "recognizes and generates #create" do
|
20
|
-
#{ :post => "/entries" }.should_not be_routable
|
21
|
-
#end
|
22
|
-
|
23
|
-
#it "recognizes and generates #update" do
|
24
|
-
#{ :put => "/entries/1" }.should_not be_routable
|
25
|
-
#end
|
26
|
-
|
27
|
-
#it "recognizes and generates #destroy" do
|
28
|
-
#{ :delete => "/entries/1" }.should_not be_routable
|
29
|
-
#end
|
30
|
-
#end
|
7
|
+
describe "routing" do
|
8
|
+
it "recognizes and generates #index" do
|
9
|
+
expect(:get => "/entries").to route_to(:controller => "plutus/entries", :action => "index")
|
10
|
+
end
|
11
|
+
end
|
31
12
|
end
|
32
13
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
3
3
|
|
4
4
|
ENV["RAILS_ENV"] ||= 'test'
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + "/../fixture_rails_root/config/environment")
|
@@ -9,6 +9,7 @@ require 'rspec/rails'
|
|
9
9
|
|
10
10
|
$: << File.expand_path(File.dirname(__FILE__) + '/../lib/')
|
11
11
|
require 'plutus'
|
12
|
+
require 'kaminari'
|
12
13
|
|
13
14
|
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
|
14
15
|
|
@@ -19,6 +20,7 @@ FactoryGirl.definition_file_paths << plutus_definitions
|
|
19
20
|
|
20
21
|
RSpec.configure do |config|
|
21
22
|
config.use_transactional_fixtures = true
|
23
|
+
config.infer_spec_type_from_file_location!
|
22
24
|
end
|
23
25
|
|
24
26
|
FactoryGirlHelpers.reload()
|
@@ -5,24 +5,28 @@ shared_examples_for 'a Plutus::Account subtype' do |elements|
|
|
5
5
|
|
6
6
|
describe "class methods" do
|
7
7
|
subject { account.class }
|
8
|
-
its(:balance) {
|
8
|
+
its(:balance) { is_expected.to be_kind_of(BigDecimal) }
|
9
9
|
describe "trial_balance" do
|
10
10
|
it "should raise NoMethodError" do
|
11
|
-
|
11
|
+
expect { subject.trial_balance }.to raise_error NoMethodError
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
describe "instance methods" do
|
17
|
-
its(:balance) {
|
17
|
+
its(:balance) { is_expected.to be_kind_of(BigDecimal) }
|
18
18
|
|
19
|
-
it
|
20
|
-
|
19
|
+
it "reports a balance with date range" do
|
20
|
+
expect(account.balance(:from_date => "2014-01-01", :to_date => Date.today)).to be_kind_of(BigDecimal)
|
21
|
+
end
|
22
|
+
|
23
|
+
it { is_expected.to respond_to(:credit_entries) }
|
24
|
+
it { is_expected.to respond_to(:debit_entries) }
|
21
25
|
end
|
22
26
|
|
23
27
|
it "requires a name" do
|
24
28
|
account.name = nil
|
25
|
-
account.
|
29
|
+
expect(account).not_to be_valid
|
26
30
|
end
|
27
31
|
|
28
32
|
# Figure out which way credits and debits should apply
|
@@ -36,21 +40,21 @@ shared_examples_for 'a Plutus::Account subtype' do |elements|
|
|
36
40
|
|
37
41
|
describe "when given a debit" do
|
38
42
|
before { FactoryGirl.create(:debit_amount, account: account) }
|
39
|
-
its(:balance) {
|
43
|
+
its(:balance) { is_expected.to be.send(debit_condition, 0) }
|
40
44
|
|
41
45
|
describe "on a contra account" do
|
42
46
|
let(:contra) { true }
|
43
|
-
its(:balance) {
|
47
|
+
its(:balance) { is_expected.to be.send(credit_condition, 0) }
|
44
48
|
end
|
45
49
|
end
|
46
50
|
|
47
51
|
describe "when given a credit" do
|
48
52
|
before { FactoryGirl.create(:credit_amount, account: account) }
|
49
|
-
its(:balance) {
|
53
|
+
its(:balance) { is_expected.to be.send(credit_condition, 0) }
|
50
54
|
|
51
55
|
describe "on a contra account" do
|
52
56
|
let(:contra) { true }
|
53
|
-
its(:balance) {
|
57
|
+
its(:balance) { is_expected.to be.send(debit_condition, 0) }
|
54
58
|
end
|
55
59
|
end
|
56
60
|
end
|
@@ -2,20 +2,20 @@ shared_examples_for 'a Plutus::Amount subtype' do |elements|
|
|
2
2
|
let(:amount) { FactoryGirl.build(elements[:kind]) }
|
3
3
|
subject { amount }
|
4
4
|
|
5
|
-
it {
|
5
|
+
it { is_expected.to be_valid }
|
6
6
|
|
7
7
|
it "should require an amount" do
|
8
8
|
amount.amount = nil
|
9
|
-
amount.
|
9
|
+
expect(amount).not_to be_valid
|
10
10
|
end
|
11
11
|
|
12
12
|
it "should require a entry" do
|
13
13
|
amount.entry = nil
|
14
|
-
amount.
|
14
|
+
expect(amount).not_to be_valid
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should require an account" do
|
18
18
|
amount.account = nil
|
19
|
-
amount.
|
19
|
+
expect(amount).not_to be_valid
|
20
20
|
end
|
21
21
|
end
|
metadata
CHANGED
@@ -1,29 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.16'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bulat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '6.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '6.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jquery-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jquery-ui-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.2.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.2.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: kaminari
|
15
57
|
requirement: !ruby/object:Gem::Requirement
|
16
58
|
requirements:
|
17
59
|
- - "~>"
|
18
60
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
61
|
+
version: '1.0'
|
20
62
|
type: :runtime
|
21
63
|
prerelease: false
|
22
64
|
version_requirements: !ruby/object:Gem::Requirement
|
23
65
|
requirements:
|
24
66
|
- - "~>"
|
25
67
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
68
|
+
version: '1.0'
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: yard
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +80,20 @@ dependencies:
|
|
38
80
|
- - ">="
|
39
81
|
- !ruby/object:Gem::Version
|
40
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: shoulda-matchers
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.1'
|
41
97
|
description: The plutus plugin provides a complete double entry accounting system
|
42
98
|
for use in any Ruby on Rails application. The plugin follows general Double Entry
|
43
99
|
Bookkeeping practices. All calculations are done using BigDecimal in order to prevent
|
@@ -54,9 +110,14 @@ files:
|
|
54
110
|
- README.markdown
|
55
111
|
- Rakefile
|
56
112
|
- app/assets/javascripts/plutus/application.js
|
113
|
+
- app/assets/javascripts/plutus/reports.js
|
114
|
+
- app/assets/stylesheets/bootstrap-theme.min.css
|
115
|
+
- app/assets/stylesheets/bootstrap.min.css
|
57
116
|
- app/assets/stylesheets/plutus/application.css
|
58
117
|
- app/controllers/plutus/accounts_controller.rb
|
118
|
+
- app/controllers/plutus/application_controller.rb
|
59
119
|
- app/controllers/plutus/entries_controller.rb
|
120
|
+
- app/controllers/plutus/reports_controller.rb
|
60
121
|
- app/models/plutus/account.rb
|
61
122
|
- app/models/plutus/amount.rb
|
62
123
|
- app/models/plutus/amounts_extension.rb
|
@@ -70,10 +131,15 @@ files:
|
|
70
131
|
- app/models/plutus/no_tenancy.rb
|
71
132
|
- app/models/plutus/revenue.rb
|
72
133
|
- app/models/plutus/tenancy.rb
|
134
|
+
- app/views/layouts/plutus/_messages.html.erb
|
135
|
+
- app/views/layouts/plutus/_navigation.html.erb
|
136
|
+
- app/views/layouts/plutus/_navigation_links.html.erb
|
137
|
+
- app/views/layouts/plutus/application.html.erb
|
73
138
|
- app/views/plutus/accounts/index.html.erb
|
74
|
-
- app/views/plutus/accounts/show.html.erb
|
75
139
|
- app/views/plutus/entries/index.html.erb
|
76
|
-
- app/views/plutus/
|
140
|
+
- app/views/plutus/reports/_account.html.erb
|
141
|
+
- app/views/plutus/reports/balance_sheet.html.erb
|
142
|
+
- app/views/plutus/reports/income_statement.html.erb
|
77
143
|
- config/backtrace_silencers.rb
|
78
144
|
- config/database.yml
|
79
145
|
- config/inflections.rb
|
@@ -81,20 +147,26 @@ files:
|
|
81
147
|
- config/routes.rb
|
82
148
|
- config/secret_token.rb
|
83
149
|
- config/session_store.rb
|
150
|
+
- db/migrate/20160422010135_create_plutus_tables.rb
|
84
151
|
- lib/generators/plutus/USAGE
|
152
|
+
- lib/generators/plutus/add_date_upgrade_generator.rb
|
153
|
+
- lib/generators/plutus/base_generator.rb
|
85
154
|
- lib/generators/plutus/plutus_generator.rb
|
86
|
-
- lib/generators/plutus/templates/
|
155
|
+
- lib/generators/plutus/templates/add_date_migration.rb
|
87
156
|
- lib/generators/plutus/templates/tenant_migration.rb
|
88
157
|
- lib/generators/plutus/templates/update_migration.rb
|
89
158
|
- lib/generators/plutus/tenancy_generator.rb
|
90
159
|
- lib/generators/plutus/upgrade_plutus_generator.rb
|
91
160
|
- lib/plutus.rb
|
161
|
+
- lib/plutus/engine.rb
|
92
162
|
- lib/plutus/version.rb
|
93
163
|
- spec/controllers/accounts_controller_spec.rb
|
94
164
|
- spec/controllers/entries_controller_spec.rb
|
165
|
+
- spec/controllers/reports_controller_spec.rb
|
95
166
|
- spec/factories/account_factory.rb
|
96
167
|
- spec/factories/amount_factory.rb
|
97
168
|
- spec/factories/entry_factory.rb
|
169
|
+
- spec/factories/tenant_factory.rb
|
98
170
|
- spec/lib/plutus_spec.rb
|
99
171
|
- spec/models/account_spec.rb
|
100
172
|
- spec/models/amount_spec.rb
|
@@ -110,13 +182,13 @@ files:
|
|
110
182
|
- spec/rcov.opts
|
111
183
|
- spec/routing/accounts_routing_spec.rb
|
112
184
|
- spec/routing/entries_routing_spec.rb
|
113
|
-
- spec/schema.rb
|
114
185
|
- spec/spec.opts
|
115
186
|
- spec/spec_helper.rb
|
116
187
|
- spec/support/account_shared_examples.rb
|
117
188
|
- spec/support/active_support_helpers.rb
|
118
189
|
- spec/support/amount_shared_examples.rb
|
119
190
|
- spec/support/factory_girl_helpers.rb
|
191
|
+
- spec/support/shoulda_matchers.rb
|
120
192
|
homepage: http://github.com/mbulat/plutus
|
121
193
|
licenses: []
|
122
194
|
metadata: {}
|
@@ -135,37 +207,37 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
207
|
- !ruby/object:Gem::Version
|
136
208
|
version: 1.3.6
|
137
209
|
requirements: []
|
138
|
-
|
139
|
-
rubygems_version: 2.4.2
|
210
|
+
rubygems_version: 3.1.2
|
140
211
|
signing_key:
|
141
212
|
specification_version: 3
|
142
213
|
summary: A Plugin providing a Double Entry Accounting Engine for Rails
|
143
214
|
test_files:
|
215
|
+
- spec/routing/entries_routing_spec.rb
|
216
|
+
- spec/routing/accounts_routing_spec.rb
|
144
217
|
- spec/lib/plutus_spec.rb
|
145
|
-
- spec/
|
146
|
-
- spec/
|
147
|
-
- spec/
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
- spec/controllers/entries_controller_spec.rb
|
220
|
+
- spec/controllers/accounts_controller_spec.rb
|
221
|
+
- spec/controllers/reports_controller_spec.rb
|
148
222
|
- spec/factories/entry_factory.rb
|
149
223
|
- spec/factories/account_factory.rb
|
150
|
-
- spec/
|
151
|
-
- spec/
|
152
|
-
- spec/support/amount_shared_examples.rb
|
224
|
+
- spec/factories/amount_factory.rb
|
225
|
+
- spec/factories/tenant_factory.rb
|
153
226
|
- spec/support/active_support_helpers.rb
|
227
|
+
- spec/support/shoulda_matchers.rb
|
154
228
|
- spec/support/account_shared_examples.rb
|
155
|
-
- spec/
|
156
|
-
- spec/
|
229
|
+
- spec/support/factory_girl_helpers.rb
|
230
|
+
- spec/support/amount_shared_examples.rb
|
231
|
+
- spec/spec.opts
|
157
232
|
- spec/rcov.opts
|
158
|
-
- spec/controllers/entries_controller_spec.rb
|
159
|
-
- spec/controllers/accounts_controller_spec.rb
|
160
|
-
- spec/models/account_spec.rb
|
161
|
-
- spec/models/credit_amount_spec.rb
|
162
|
-
- spec/models/expense_spec.rb
|
163
|
-
- spec/models/tenancy_spec.rb
|
164
233
|
- spec/models/liability_spec.rb
|
165
|
-
- spec/models/
|
166
|
-
- spec/models/
|
234
|
+
- spec/models/credit_amount_spec.rb
|
235
|
+
- spec/models/equity_spec.rb
|
167
236
|
- spec/models/revenue_spec.rb
|
237
|
+
- spec/models/debit_amount_spec.rb
|
238
|
+
- spec/models/account_spec.rb
|
168
239
|
- spec/models/amount_spec.rb
|
169
|
-
- spec/models/
|
240
|
+
- spec/models/tenancy_spec.rb
|
170
241
|
- spec/models/entry_spec.rb
|
171
|
-
|
242
|
+
- spec/models/asset_spec.rb
|
243
|
+
- spec/models/expense_spec.rb
|