we_bridge_rails_engine_orgs 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/app/assets/javascripts/org_department_positions.js +2 -0
  4. data/app/assets/javascripts/org_departments.js +2 -0
  5. data/app/assets/stylesheets/org_department_positions.css +4 -0
  6. data/app/assets/stylesheets/org_departments.css +4 -0
  7. data/app/controllers/org_department_positions_controller.rb +58 -0
  8. data/app/controllers/org_departments_controller.rb +58 -0
  9. data/app/helpers/org_department_positions_helper.rb +2 -0
  10. data/app/helpers/org_departments_helper.rb +2 -0
  11. data/app/models/org.rb +11 -3
  12. data/app/models/org_branch.rb +15 -0
  13. data/app/models/org_department.rb +19 -0
  14. data/app/models/org_department_position.rb +26 -0
  15. data/app/models/org_department_position_member_mapping.rb +7 -0
  16. data/app/models/org_department_position_text.rb +10 -0
  17. data/app/models/org_department_text.rb +11 -0
  18. data/app/models/org_member.rb +5 -0
  19. data/app/views/org_department_positions/_form.html.builder +14 -0
  20. data/app/views/org_department_positions/edit.html.builder +7 -0
  21. data/app/views/org_department_positions/index.html.builder +25 -0
  22. data/app/views/org_department_positions/new.html.builder +5 -0
  23. data/app/views/org_department_positions/show.html.builder +8 -0
  24. data/app/views/org_departments/_form.html.builder +14 -0
  25. data/app/views/org_departments/edit.html.builder +7 -0
  26. data/app/views/org_departments/index.html.builder +25 -0
  27. data/app/views/org_departments/new.html.builder +5 -0
  28. data/app/views/org_departments/show.html.builder +8 -0
  29. data/config/routes.rb +3 -0
  30. data/db/migrate/20151204183447_create_org_departments.rb +18 -0
  31. data/db/migrate/20151204183612_create_org_department_positions.rb +26 -0
  32. data/lib/we_bridge_rails_engine_orgs/version.rb +1 -1
  33. data/spec/controllers/org_department_positions_controller_spec.rb +159 -0
  34. data/spec/controllers/org_departments_controller_spec.rb +159 -0
  35. data/spec/dummy/db/development.sqlite3 +0 -0
  36. data/spec/dummy/db/schema.rb +47 -1
  37. data/spec/dummy/db/test.sqlite3 +0 -0
  38. data/spec/dummy/log/development.log +1262 -0
  39. data/spec/dummy/log/test.log +3269 -0
  40. data/spec/factories/org_department_positions.rb +6 -0
  41. data/spec/factories/org_departments.rb +6 -0
  42. data/spec/helpers/org_department_positions_helper_spec.rb +15 -0
  43. data/spec/helpers/org_departments_helper_spec.rb +15 -0
  44. data/spec/models/org_branch_spec.rb +26 -1
  45. data/spec/models/org_department_position_spec.rb +5 -0
  46. data/spec/models/org_department_spec.rb +32 -0
  47. data/spec/models/org_member_spec.rb +18 -1
  48. data/spec/models/org_spec.rb +39 -1
  49. data/spec/routing/org_department_positions_routing_spec.rb +39 -0
  50. data/spec/routing/org_departments_routing_spec.rb +39 -0
  51. data/spec/views/org_department_positions/edit.html.builder_spec.rb +14 -0
  52. data/spec/views/org_department_positions/index.html.builder_spec.rb +14 -0
  53. data/spec/views/org_department_positions/new.html.builder_spec.rb +14 -0
  54. data/spec/views/org_department_positions/show.html.builder_spec.rb +11 -0
  55. data/spec/views/org_departments/edit.html.builder_spec.rb +14 -0
  56. data/spec/views/org_departments/index.html.builder_spec.rb +14 -0
  57. data/spec/views/org_departments/new.html.builder_spec.rb +14 -0
  58. data/spec/views/org_departments/show.html.builder_spec.rb +11 -0
  59. metadata +65 -4
  60. data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :org_department_position do
3
+
4
+ end
5
+
6
+ end
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :org_department do
3
+
4
+ end
5
+
6
+ end
@@ -0,0 +1,15 @@
1
+ require 'rails_helper'
2
+
3
+ # Specs in this file have access to a helper object that includes
4
+ # the OrgDepartmentPositionsHelper. For example:
5
+ #
6
+ # describe OrgDepartmentPositionsHelper do
7
+ # describe "string concat" do
8
+ # it "concats two strings with spaces" do
9
+ # expect(helper.concat_strings("this","that")).to eq("this that")
10
+ # end
11
+ # end
12
+ # end
13
+ RSpec.describe OrgDepartmentPositionsHelper, type: :helper do
14
+ pending "add some examples to (or delete) #{__FILE__}"
15
+ end
@@ -0,0 +1,15 @@
1
+ require 'rails_helper'
2
+
3
+ # Specs in this file have access to a helper object that includes
4
+ # the OrgDepartmentsHelper. For example:
5
+ #
6
+ # describe OrgDepartmentsHelper do
7
+ # describe "string concat" do
8
+ # it "concats two strings with spaces" do
9
+ # expect(helper.concat_strings("this","that")).to eq("this that")
10
+ # end
11
+ # end
12
+ # end
13
+ RSpec.describe OrgDepartmentsHelper, type: :helper do
14
+ pending "add some examples to (or delete) #{__FILE__}"
15
+ end
@@ -1,5 +1,30 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe OrgBranch, type: :model do
4
- pending "add some examples to (or delete) #{__FILE__}"
4
+ before do
5
+ @org = Org.create!(lang_id: 1)
6
+ end
7
+
8
+ describe ".has_member" do
9
+ before do
10
+ @branch = OrgBranch.create!(org_id: @org.id, org_branch_type_id: 1)
11
+ @branch2 = OrgBranch.create!(org_id: @org.id, org_branch_type_id: 1)
12
+ end
13
+
14
+ it "count 0" do
15
+ expect(OrgBranch.has_member.first).to be_nil
16
+ end
17
+
18
+ it "count 1 with 1 member" do
19
+ @branch.add OrgMember.create!(org_id: @org.id, entried_on: Time.now)
20
+ expect(OrgBranch.has_member.first.id).to eq(@branch.id)
21
+ end
22
+
23
+ it "count 1 with 2 member" do
24
+ @branch.add OrgMember.create!(org_id: @org.id, entried_on: Time.now)
25
+ @branch.add OrgMember.create!(org_id: @org.id, entried_on: Time.now)
26
+ expect(OrgBranch.has_member.count).to eq(1)
27
+ expect(OrgBranch.has_member.first.id).to eq(@branch.id)
28
+ end
29
+ end
5
30
  end
@@ -0,0 +1,5 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe OrgDepartmentPosition, type: :model do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,32 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe OrgDepartment, type: :model do
4
+ before do
5
+ @org = Org.create!(lang_id: 1)
6
+ @department = OrgDepartment.create!(org_id: @org.id)
7
+ @department_position = OrgDepartmentPosition.create!(org_department_id: @department.id)
8
+ @member = OrgMember.create!(org_id: @org.id, entried_on: Time.now)
9
+ end
10
+
11
+ describe ".members" do
12
+ context "count 1" do
13
+ before do
14
+ @department_position.add @member
15
+ end
16
+
17
+ it "count 1 with 1 position" do
18
+ members = @department.members
19
+ expect(members.count).to eq(1)
20
+ expect(members.first.id).to eq(@member.id)
21
+ end
22
+
23
+ it "count 1 with 2 positions" do
24
+ department_position2 = OrgDepartmentPosition.create!(org_department_id: @department.id)
25
+ department_position2.add @member
26
+ members = @department.members
27
+ expect(members.count).to eq(1)
28
+ expect(members.first.id).to eq(@member.id)
29
+ end
30
+ end
31
+ end
32
+ end
@@ -1,5 +1,22 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe OrgMember, type: :model do
4
- pending "add some examples to (or delete) #{__FILE__}"
4
+ before do
5
+ @org = Org.create!(lang_id: 1)
6
+ end
7
+
8
+ context "default_scope" do
9
+ before do
10
+ @member = OrgMember.create!(org_id: @org.id, entried_on: Time.now-10, retired_on: Time.now)
11
+ end
12
+
13
+ it "available member" do
14
+ @member.update(retired_on: nil)
15
+ expect(@org.members.first.id).to eq(@member.id)
16
+ end
17
+
18
+ it "retired member" do
19
+ expect(@org.members.count).to eq(0)
20
+ end
21
+ end
5
22
  end
@@ -1,5 +1,43 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  RSpec.describe Org, type: :model do
4
- pending "add some examples to (or delete) #{__FILE__}"
4
+ before do
5
+ @org = Org.create!(lang_id: 1)
6
+ end
7
+
8
+ describe ".representative" do
9
+ before do
10
+ @member1 = OrgMember.create!(org_id: @org.id, entried_on: Time.now)
11
+ @member0 = OrgMember.create!(org_id: @org.id, entried_on: Time.now)
12
+ @director_type0 = OrgDirectorType.create!(org_id: @org.id, position: 0)
13
+ @director_type1 = OrgDirectorType.create!(org_id: @org.id, position: 1)
14
+ end
15
+
16
+ context "count 0" do
17
+ it "no director" do
18
+ expect(@org.representative).to be_nil
19
+ end
20
+
21
+ it "no primary director_type member" do
22
+ @member1.update(org_director_type_id: @director_type1.id)
23
+ expect(@org.representative).to be_nil
24
+ end
25
+ end
26
+
27
+ context "has director" do
28
+ before do
29
+ @member0.update(org_director_type_id: @director_type0.id)
30
+ @member1.update(org_director_type_id: @director_type1.id)
31
+ end
32
+
33
+ it "count 1 with 1 member" do
34
+ expect(@org.representative.id).to eq(@member0.id)
35
+ end
36
+
37
+ it "count 1 with 2 member" do
38
+ @member1.update(org_director_type_id: @director_type0.id)
39
+ expect(@org.representative.id).to eq([@member0,@member1].min_by(&:id).id)
40
+ end
41
+ end
42
+ end
5
43
  end
@@ -0,0 +1,39 @@
1
+ require "rails_helper"
2
+
3
+ RSpec.describe OrgDepartmentPositionsController, type: :routing do
4
+ describe "routing" do
5
+
6
+ it "routes to #index" do
7
+ expect(:get => "/org_department_positions").to route_to("org_department_positions#index")
8
+ end
9
+
10
+ it "routes to #new" do
11
+ expect(:get => "/org_department_positions/new").to route_to("org_department_positions#new")
12
+ end
13
+
14
+ it "routes to #show" do
15
+ expect(:get => "/org_department_positions/1").to route_to("org_department_positions#show", :id => "1")
16
+ end
17
+
18
+ it "routes to #edit" do
19
+ expect(:get => "/org_department_positions/1/edit").to route_to("org_department_positions#edit", :id => "1")
20
+ end
21
+
22
+ it "routes to #create" do
23
+ expect(:post => "/org_department_positions").to route_to("org_department_positions#create")
24
+ end
25
+
26
+ it "routes to #update via PUT" do
27
+ expect(:put => "/org_department_positions/1").to route_to("org_department_positions#update", :id => "1")
28
+ end
29
+
30
+ it "routes to #update via PATCH" do
31
+ expect(:patch => "/org_department_positions/1").to route_to("org_department_positions#update", :id => "1")
32
+ end
33
+
34
+ it "routes to #destroy" do
35
+ expect(:delete => "/org_department_positions/1").to route_to("org_department_positions#destroy", :id => "1")
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,39 @@
1
+ require "rails_helper"
2
+
3
+ RSpec.describe OrgDepartmentsController, type: :routing do
4
+ describe "routing" do
5
+
6
+ it "routes to #index" do
7
+ expect(:get => "/org_departments").to route_to("org_departments#index")
8
+ end
9
+
10
+ it "routes to #new" do
11
+ expect(:get => "/org_departments/new").to route_to("org_departments#new")
12
+ end
13
+
14
+ it "routes to #show" do
15
+ expect(:get => "/org_departments/1").to route_to("org_departments#show", :id => "1")
16
+ end
17
+
18
+ it "routes to #edit" do
19
+ expect(:get => "/org_departments/1/edit").to route_to("org_departments#edit", :id => "1")
20
+ end
21
+
22
+ it "routes to #create" do
23
+ expect(:post => "/org_departments").to route_to("org_departments#create")
24
+ end
25
+
26
+ it "routes to #update via PUT" do
27
+ expect(:put => "/org_departments/1").to route_to("org_departments#update", :id => "1")
28
+ end
29
+
30
+ it "routes to #update via PATCH" do
31
+ expect(:patch => "/org_departments/1").to route_to("org_departments#update", :id => "1")
32
+ end
33
+
34
+ it "routes to #destroy" do
35
+ expect(:delete => "/org_departments/1").to route_to("org_departments#destroy", :id => "1")
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_department_positions/edit", type: :view do
4
+ before(:each) do
5
+ @org_department_position = assign(:org_department_position, OrgDepartmentPosition.create!())
6
+ end
7
+
8
+ it "renders the edit org_department_position form" do
9
+ render
10
+
11
+ assert_select "form[action=?][method=?]", org_department_position_path(@org_department_position), "post" do
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_department_positions/index", type: :view do
4
+ before(:each) do
5
+ assign(:org_department_positions, [
6
+ OrgDepartmentPosition.create!(),
7
+ OrgDepartmentPosition.create!()
8
+ ])
9
+ end
10
+
11
+ it "renders a list of org_department_positions" do
12
+ render
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_department_positions/new", type: :view do
4
+ before(:each) do
5
+ assign(:org_department_position, OrgDepartmentPosition.new())
6
+ end
7
+
8
+ it "renders new org_department_position form" do
9
+ render
10
+
11
+ assert_select "form[action=?][method=?]", org_department_positions_path, "post" do
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_department_positions/show", type: :view do
4
+ before(:each) do
5
+ @org_department_position = assign(:org_department_position, OrgDepartmentPosition.create!())
6
+ end
7
+
8
+ it "renders attributes in <p>" do
9
+ render
10
+ end
11
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_departments/edit", type: :view do
4
+ before(:each) do
5
+ @org_department = assign(:org_department, OrgDepartment.create!())
6
+ end
7
+
8
+ it "renders the edit org_department form" do
9
+ render
10
+
11
+ assert_select "form[action=?][method=?]", org_department_path(@org_department), "post" do
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_departments/index", type: :view do
4
+ before(:each) do
5
+ assign(:org_departments, [
6
+ OrgDepartment.create!(),
7
+ OrgDepartment.create!()
8
+ ])
9
+ end
10
+
11
+ it "renders a list of org_departments" do
12
+ render
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_departments/new", type: :view do
4
+ before(:each) do
5
+ assign(:org_department, OrgDepartment.new())
6
+ end
7
+
8
+ it "renders new org_department form" do
9
+ render
10
+
11
+ assert_select "form[action=?][method=?]", org_departments_path, "post" do
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "org_departments/show", type: :view do
4
+ before(:each) do
5
+ @org_department = assign(:org_department, OrgDepartment.create!())
6
+ end
7
+
8
+ it "renders attributes in <p>" do
9
+ render
10
+ end
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: we_bridge_rails_engine_orgs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinjiro Itagaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2015-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-mlang
@@ -198,6 +198,8 @@ files:
198
198
  - Rakefile
199
199
  - app/assets/javascripts/org_activities.js
200
200
  - app/assets/javascripts/org_branches.js
201
+ - app/assets/javascripts/org_department_positions.js
202
+ - app/assets/javascripts/org_departments.js
201
203
  - app/assets/javascripts/org_director_types.js
202
204
  - app/assets/javascripts/org_directors.js
203
205
  - app/assets/javascripts/org_member_tags.js
@@ -206,6 +208,8 @@ files:
206
208
  - app/assets/javascripts/orgs.js
207
209
  - app/assets/stylesheets/org_activities.css
208
210
  - app/assets/stylesheets/org_branches.css
211
+ - app/assets/stylesheets/org_department_positions.css
212
+ - app/assets/stylesheets/org_departments.css
209
213
  - app/assets/stylesheets/org_director_types.css
210
214
  - app/assets/stylesheets/org_directors.css
211
215
  - app/assets/stylesheets/org_member_tags.css
@@ -217,6 +221,8 @@ files:
217
221
  - app/controllers/org_activities_controller.rb
218
222
  - app/controllers/org_branch_types_controller.rb
219
223
  - app/controllers/org_branches_controller.rb
224
+ - app/controllers/org_department_positions_controller.rb
225
+ - app/controllers/org_departments_controller.rb
220
226
  - app/controllers/org_director_types_controller.rb
221
227
  - app/controllers/org_directors_controller.rb
222
228
  - app/controllers/org_member_tags_controller.rb
@@ -225,6 +231,8 @@ files:
225
231
  - app/controllers/orgs_controller.rb
226
232
  - app/helpers/org_activities_helper.rb
227
233
  - app/helpers/org_branches_helper.rb
234
+ - app/helpers/org_department_positions_helper.rb
235
+ - app/helpers/org_departments_helper.rb
228
236
  - app/helpers/org_director_types_helper.rb
229
237
  - app/helpers/org_directors_helper.rb
230
238
  - app/helpers/org_member_tags_helper.rb
@@ -241,6 +249,11 @@ files:
241
249
  - app/models/org_branch_text.rb
242
250
  - app/models/org_branch_type.rb
243
251
  - app/models/org_branch_type_text.rb
252
+ - app/models/org_department.rb
253
+ - app/models/org_department_position.rb
254
+ - app/models/org_department_position_member_mapping.rb
255
+ - app/models/org_department_position_text.rb
256
+ - app/models/org_department_text.rb
244
257
  - app/models/org_director_type.rb
245
258
  - app/models/org_director_type_text.rb
246
259
  - app/models/org_member.rb
@@ -268,6 +281,16 @@ files:
268
281
  - app/views/org_branches/index.html.builder
269
282
  - app/views/org_branches/new.html.builder
270
283
  - app/views/org_branches/show.html.builder
284
+ - app/views/org_department_positions/_form.html.builder
285
+ - app/views/org_department_positions/edit.html.builder
286
+ - app/views/org_department_positions/index.html.builder
287
+ - app/views/org_department_positions/new.html.builder
288
+ - app/views/org_department_positions/show.html.builder
289
+ - app/views/org_departments/_form.html.builder
290
+ - app/views/org_departments/edit.html.builder
291
+ - app/views/org_departments/index.html.builder
292
+ - app/views/org_departments/new.html.builder
293
+ - app/views/org_departments/show.html.builder
271
294
  - app/views/org_director_types/_form.html.builder
272
295
  - app/views/org_director_types/edit.html.builder
273
296
  - app/views/org_director_types/index.html.builder
@@ -302,6 +325,8 @@ files:
302
325
  - db/migrate/20151009112829_delete_names.rb
303
326
  - db/migrate/20151203153522_add_branch_position.rb
304
327
  - db/migrate/20151204024709_add_names_to_org_members.rb
328
+ - db/migrate/20151204183447_create_org_departments.rb
329
+ - db/migrate/20151204183612_create_org_department_positions.rb
305
330
  - lib/tasks/we_bridge_rails_engine_orgs_tasks.rake
306
331
  - lib/we_bridge_rails_engine_orgs.rb
307
332
  - lib/we_bridge_rails_engine_orgs/engine.rb
@@ -309,6 +334,8 @@ files:
309
334
  - we_bridge_rails_engine_orgs.gemspec
310
335
  - spec/controllers/org_activities_controller_spec.rb
311
336
  - spec/controllers/org_branches_controller_spec.rb
337
+ - spec/controllers/org_department_positions_controller_spec.rb
338
+ - spec/controllers/org_departments_controller_spec.rb
312
339
  - spec/controllers/org_director_types_controller_spec.rb
313
340
  - spec/controllers/org_directors_controller_spec.rb
314
341
  - spec/controllers/org_member_tags_controller_spec.rb
@@ -348,6 +375,7 @@ files:
348
375
  - spec/dummy/config.ru
349
376
  - spec/dummy/db/development.sqlite3
350
377
  - spec/dummy/db/schema.rb
378
+ - spec/dummy/db/test.sqlite3
351
379
  - spec/dummy/log/development.log
352
380
  - spec/dummy/log/test.log
353
381
  - spec/dummy/public/404.html
@@ -463,9 +491,10 @@ files:
463
491
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ysBC3QUuPfkgfYV3nBpTw_znt9DtKC5I7erWmLCPTCM.cache
464
492
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Z9_T0XrFi2IVgHl_2slv4wpbdSa0EhpECdvLA25u9O0.cache
465
493
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zd_YJiP9IEPD6jymqPu1CaH2XP0-m5SZBe9uLiYqMLI.cache
466
- - spec/dummy/tmp/pids/server.pid
467
494
  - spec/factories/org_activities.rb
468
495
  - spec/factories/org_branches.rb
496
+ - spec/factories/org_department_positions.rb
497
+ - spec/factories/org_departments.rb
469
498
  - spec/factories/org_director_types.rb
470
499
  - spec/factories/org_directors.rb
471
500
  - spec/factories/org_member_tags.rb
@@ -474,6 +503,8 @@ files:
474
503
  - spec/factories/orgs.rb
475
504
  - spec/helpers/org_activities_helper_spec.rb
476
505
  - spec/helpers/org_branches_helper_spec.rb
506
+ - spec/helpers/org_department_positions_helper_spec.rb
507
+ - spec/helpers/org_departments_helper_spec.rb
477
508
  - spec/helpers/org_director_types_helper_spec.rb
478
509
  - spec/helpers/org_directors_helper_spec.rb
479
510
  - spec/helpers/org_member_tags_helper_spec.rb
@@ -482,6 +513,8 @@ files:
482
513
  - spec/helpers/orgs_helper_spec.rb
483
514
  - spec/models/org_activity_spec.rb
484
515
  - spec/models/org_branch_spec.rb
516
+ - spec/models/org_department_position_spec.rb
517
+ - spec/models/org_department_spec.rb
485
518
  - spec/models/org_director_spec.rb
486
519
  - spec/models/org_director_type_spec.rb
487
520
  - spec/models/org_member_spec.rb
@@ -492,6 +525,8 @@ files:
492
525
  - spec/rails_helper.rb
493
526
  - spec/routing/org_activities_routing_spec.rb
494
527
  - spec/routing/org_branches_routing_spec.rb
528
+ - spec/routing/org_department_positions_routing_spec.rb
529
+ - spec/routing/org_departments_routing_spec.rb
495
530
  - spec/routing/org_director_types_routing_spec.rb
496
531
  - spec/routing/org_directors_routing_spec.rb
497
532
  - spec/routing/org_member_tags_routing_spec.rb
@@ -507,6 +542,14 @@ files:
507
542
  - spec/views/org_branches/index.html.builder_spec.rb
508
543
  - spec/views/org_branches/new.html.builder_spec.rb
509
544
  - spec/views/org_branches/show.html.builder_spec.rb
545
+ - spec/views/org_department_positions/edit.html.builder_spec.rb
546
+ - spec/views/org_department_positions/index.html.builder_spec.rb
547
+ - spec/views/org_department_positions/new.html.builder_spec.rb
548
+ - spec/views/org_department_positions/show.html.builder_spec.rb
549
+ - spec/views/org_departments/edit.html.builder_spec.rb
550
+ - spec/views/org_departments/index.html.builder_spec.rb
551
+ - spec/views/org_departments/new.html.builder_spec.rb
552
+ - spec/views/org_departments/show.html.builder_spec.rb
510
553
  - spec/views/org_director_types/edit.html.builder_spec.rb
511
554
  - spec/views/org_director_types/index.html.builder_spec.rb
512
555
  - spec/views/org_director_types/new.html.builder_spec.rb
@@ -559,6 +602,8 @@ summary: engine for management organization's information.
559
602
  test_files:
560
603
  - spec/controllers/org_activities_controller_spec.rb
561
604
  - spec/controllers/org_branches_controller_spec.rb
605
+ - spec/controllers/org_department_positions_controller_spec.rb
606
+ - spec/controllers/org_departments_controller_spec.rb
562
607
  - spec/controllers/org_director_types_controller_spec.rb
563
608
  - spec/controllers/org_directors_controller_spec.rb
564
609
  - spec/controllers/org_member_tags_controller_spec.rb
@@ -598,6 +643,7 @@ test_files:
598
643
  - spec/dummy/config.ru
599
644
  - spec/dummy/db/development.sqlite3
600
645
  - spec/dummy/db/schema.rb
646
+ - spec/dummy/db/test.sqlite3
601
647
  - spec/dummy/log/development.log
602
648
  - spec/dummy/log/test.log
603
649
  - spec/dummy/public/404.html
@@ -713,9 +759,10 @@ test_files:
713
759
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ysBC3QUuPfkgfYV3nBpTw_znt9DtKC5I7erWmLCPTCM.cache
714
760
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Z9_T0XrFi2IVgHl_2slv4wpbdSa0EhpECdvLA25u9O0.cache
715
761
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zd_YJiP9IEPD6jymqPu1CaH2XP0-m5SZBe9uLiYqMLI.cache
716
- - spec/dummy/tmp/pids/server.pid
717
762
  - spec/factories/org_activities.rb
718
763
  - spec/factories/org_branches.rb
764
+ - spec/factories/org_department_positions.rb
765
+ - spec/factories/org_departments.rb
719
766
  - spec/factories/org_director_types.rb
720
767
  - spec/factories/org_directors.rb
721
768
  - spec/factories/org_member_tags.rb
@@ -724,6 +771,8 @@ test_files:
724
771
  - spec/factories/orgs.rb
725
772
  - spec/helpers/org_activities_helper_spec.rb
726
773
  - spec/helpers/org_branches_helper_spec.rb
774
+ - spec/helpers/org_department_positions_helper_spec.rb
775
+ - spec/helpers/org_departments_helper_spec.rb
727
776
  - spec/helpers/org_director_types_helper_spec.rb
728
777
  - spec/helpers/org_directors_helper_spec.rb
729
778
  - spec/helpers/org_member_tags_helper_spec.rb
@@ -732,6 +781,8 @@ test_files:
732
781
  - spec/helpers/orgs_helper_spec.rb
733
782
  - spec/models/org_activity_spec.rb
734
783
  - spec/models/org_branch_spec.rb
784
+ - spec/models/org_department_position_spec.rb
785
+ - spec/models/org_department_spec.rb
735
786
  - spec/models/org_director_spec.rb
736
787
  - spec/models/org_director_type_spec.rb
737
788
  - spec/models/org_member_spec.rb
@@ -742,6 +793,8 @@ test_files:
742
793
  - spec/rails_helper.rb
743
794
  - spec/routing/org_activities_routing_spec.rb
744
795
  - spec/routing/org_branches_routing_spec.rb
796
+ - spec/routing/org_department_positions_routing_spec.rb
797
+ - spec/routing/org_departments_routing_spec.rb
745
798
  - spec/routing/org_director_types_routing_spec.rb
746
799
  - spec/routing/org_directors_routing_spec.rb
747
800
  - spec/routing/org_member_tags_routing_spec.rb
@@ -757,6 +810,14 @@ test_files:
757
810
  - spec/views/org_branches/index.html.builder_spec.rb
758
811
  - spec/views/org_branches/new.html.builder_spec.rb
759
812
  - spec/views/org_branches/show.html.builder_spec.rb
813
+ - spec/views/org_department_positions/edit.html.builder_spec.rb
814
+ - spec/views/org_department_positions/index.html.builder_spec.rb
815
+ - spec/views/org_department_positions/new.html.builder_spec.rb
816
+ - spec/views/org_department_positions/show.html.builder_spec.rb
817
+ - spec/views/org_departments/edit.html.builder_spec.rb
818
+ - spec/views/org_departments/index.html.builder_spec.rb
819
+ - spec/views/org_departments/new.html.builder_spec.rb
820
+ - spec/views/org_departments/show.html.builder_spec.rb
760
821
  - spec/views/org_director_types/edit.html.builder_spec.rb
761
822
  - spec/views/org_director_types/index.html.builder_spec.rb
762
823
  - spec/views/org_director_types/new.html.builder_spec.rb