Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.67 KB | None | 0 0
  1. 1) User abilities when rop behaves like except cfo_seller_editor_cco has ability to read other managers companies
  2. Failure/Error: should be_able_to :read, other_manager_company
  3. expected to be able to :read #<Company id: nil, title: "company_65", old_phones: "1-800-692-7753, 1-800-275-2273", email: "info@company_65.com", url: "company_62_site.com", packet_id: 0, region_id: 31396, first_user_binding_date: nil, packet_starts: nil, packet_ends: nil, status: "A", product_count: nil, archive_product_count: nil, unique_visits_count: nil, last_unique_visits_count: nil, created_at: nil, updated_at: nil, state: "active", members: nil, sites: nil, icq: nil, skype: nil, products_change_date: nil, deals_count: 0, deals_change_date: nil, site_view_statistics: 0, source_id: 65, source_created_at: nil, stage_id: nil, source_state: "accepted", comment: nil, actual: nil, products_limit: nil, title_md: nil, online_store_type_id: nil, client_id: nil, paid_placement_started_at: nil, paid_service_started_at: nil, paid_placement_expired_at: nil, current_activity_starts_on: nil, current_activity_ends_on: nil, domain_expiration_date: nil, regions_for_publication: nil, amount_for_publication: nil>
  4. Shared Example Group: "except cfo_seller_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:247
  5. # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:485:in `block (2 levels) in <top (required)>'
  6.  
  7. 2) User abilities when rop behaves like except cfo_seller_editor_cco has ability to update managed client
  8. Failure/Error: should be_able_to :update, managed_client
  9. expected to be able to :update #<Client id: nil, client_source_id: nil, url: "client_28_site.com", title: "client_28", main_company_id: 13430, payer_id: nil, self_payer_id: nil, manager_id: 13897, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: nil, updated_at: nil>
  10. Shared Example Group: "except cfo_seller_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:247
  11. # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:552:in `block (2 levels) in <top (required)>'
  12.  
  13. 3) User abilities when rop behaves like except cfo_seller_editor_cco region routines when region assigned to user has ability to update companies in different region
  14. Failure/Error: should be_able_to :update, edited_company_with_different_region
  15. expected to be able to :update #<Company id: 13504, title: "company_153", old_phones: "1-800-692-7753, 1-800-275-2273", email: "info@company_153.com", url: "company_150_site.com", packet_id: 0, region_id: 31568, first_user_binding_date: nil, packet_starts: nil, packet_ends: nil, status: "A", product_count: nil, archive_product_count: nil, unique_visits_count: nil, last_unique_visits_count: nil, created_at: "2015-11-27 11:45:48", updated_at: "2015-11-27 11:45:48", state: "active", members: nil, sites: nil, icq: nil, skype: nil, products_change_date: nil, deals_count: 0, deals_change_date: nil, site_view_statistics: 0, source_id: 153, source_created_at: nil, stage_id: nil, source_state: "accepted", comment: nil, actual: nil, products_limit: nil, title_md: nil, online_store_type_id: nil, client_id: 3886, paid_placement_started_at: nil, paid_service_started_at: nil, paid_placement_expired_at: nil, current_activity_starts_on: nil, current_activity_ends_on: nil, domain_expiration_date: nil, regions_for_publication: nil, amount_for_publication: nil>
  16. Shared Example Group: "except cfo_seller_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:247
  17. # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:521:in `block (4 levels) in <top (required)>'
  18.  
  19. 4) User abilities when rop behaves like except rkr_sup_editor_cco has ability revert single lot
  20. Failure/Error: should be_able_to :update, single_lot
  21. expected to be able to :update #<Lots::Base id: 1059, created_at: nil, updated_at: nil, sequential_id: nil, account_number: nil, start_date_old: nil, end_date_old: nil, pay_up_to: "2015-12-03 19:00:00", edition_id_old: nil, service_id: 1054, service_price: #<BigDecimal:f1c85e0,'0.0',9(18)>, summary_price: #<BigDecimal:f5ee110,'0.1E5',9(36)>, discount: #<BigDecimal:f1c7488,'0.0',9(18)>, company_id: 1046, old_payer_id: nil, user_id: 1058, old_self_payer_id: nil, custom_number: nil, piss_off: false, fully_paid_at: nil, packet_id: 2, commercial_region_id: 1049, limit_old: nil, author_id: 1053, just_enable_packet_old: false, amount_old: 1, one_unit_cost_old: #<BigDecimal:f2b4c88,'0.0',9(18)>, position: nil, bill_id: 1042, activation_attributes: {:type=>LotActivationPrepay}, with_journal_old: false, custom_lot_attributes: {"start_date"=>Fri, 27 Nov 2015, "end_date"=>Sun, 06 Mar 2016}, type: "", summary_price_currency: #<BigDecimal:f5ed198,'0.1E5',9(36)>, currency_id: 1>
  22. Shared Example Group: "except rkr_sup_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:252
  23. # ./spec/models/user_abilities_rop_rkr_sup_roles_examples.rb:54:in `block (2 levels) in <top (required)>'
  24.  
  25. 5) User abilities when rop behaves like except admin_cfo has not ability to update inactive companies
  26. Failure/Error: should_not be_able_to :update, deleted_company
  27. expected not to be able to :update #<Company id: 13620, title: "company_275", old_phones: "1-800-692-7753, 1-800-275-2273", email: "info@company_275.com", url: "company_272_site.com", packet_id: 0, region_id: 31819, first_user_binding_date: nil, packet_starts: nil, packet_ends: nil, status: "A", product_count: nil, archive_product_count: nil, unique_visits_count: nil, last_unique_visits_count: nil, created_at: "2015-11-27 11:46:20", updated_at: "2015-11-27 11:46:20", state: "deleted", members: nil, sites: nil, icq: nil, skype: nil, products_change_date: nil, deals_count: 0, deals_change_date: nil, site_view_statistics: 0, source_id: 275, source_created_at: nil, stage_id: nil, source_state: "accepted", comment: nil, actual: nil, products_limit: nil, title_md: nil, online_store_type_id: nil, client_id: 3899, paid_placement_started_at: nil, paid_service_started_at: nil, paid_placement_expired_at: nil, current_activity_starts_on: nil, current_activity_ends_on: nil, domain_expiration_date: nil, regions_for_publication: nil, amount_for_publication: nil>
  28. Shared Example Group: "except admin_cfo" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:227
  29. # ./spec/models/user_abilities_admin_role_examples.rb:407:in `block (2 levels) in <top (required)>'
  30.  
  31. 6) User abilities when rop behaves like except cfo when different department has ability to update all operations without result
  32. Failure/Error: should be_able_to :update, manager_operation_without_result
  33. expected to be able to :update #<Operation id: nil, manager_id: 14205, company_id: 13630, result_id: nil, reject_id: 1707, comment: "comment_86", date: "2015-11-26 19:00:00", next_operation_id: nil, created_at: nil, updated_at: nil, time: "2000-01-01 08:00:00", status_id: 1, documents_given: false, expiration_date: nil, template_id: 1942, original_date: "2015-11-26 19:00:00", move_counter: 0, color_id: 1708>
  34. Shared Example Group: "except cfo" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:241
  35. # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:68:in `block (3 levels) in <top (required)>'
  36.  
  37. 7) User abilities when rop behaves like except cfo operation abilities when author without department has ability to update all operations without result
  38. Failure/Error: should be_able_to :update, author_operation_without_result
  39. expected to be able to :update #<Operation id: nil, manager_id: 14209, company_id: 13631, result_id: nil, reject_id: 1708, comment: "comment_87", date: "2015-11-26 19:00:00", next_operation_id: nil, created_at: nil, updated_at: nil, time: "2000-01-01 08:00:00", status_id: 1, documents_given: false, expiration_date: nil, template_id: 1943, original_date: "2015-11-26 19:00:00", move_counter: 0, color_id: 1709>
  40. Shared Example Group: "except cfo" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:241
  41. # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:79:in `block (4 levels) in <top (required)>'
  42.  
  43. 8) User abilities when rop behaves like except editor_cco single lot has ability to revert ShortLot
  44. Failure/Error: should be_able_to :update, short_lot
  45. expected to be able to :update #<Lots::ShortLot id: 1268, created_at: nil, updated_at: nil, sequential_id: nil, account_number: nil, start_date_old: nil, end_date_old: nil, pay_up_to: "2015-12-03 19:00:00", edition_id_old: nil, service_id: nil, service_price: #<BigDecimal:f1c85e0,'0.0',9(18)>, summary_price: #<BigDecimal:f1c7c58,'0.0',9(18)>, discount: #<BigDecimal:f1c7488,'0.0',9(18)>, company_id: 13644, old_payer_id: nil, user_id: 1257, old_self_payer_id: nil, custom_number: nil, piss_off: false, fully_paid_at: nil, packet_id: 2, commercial_region_id: 1249, limit_old: nil, author_id: 1253, just_enable_packet_old: false, amount_old: 1, one_unit_cost_old: #<BigDecimal:f2b4c88,'0.0',9(18)>, position: nil, bill_id: 1267, activation_attributes: {:type=>LotActivationJustEnablePacket}, with_journal_old: false, custom_lot_attributes: {"start_date"=>Fri, 27 Nov 2015, "end_date"=>Sun, 27 Dec 2015, "limit"=>1000}, type: "Lots::ShortLot", summary_price_currency: #<BigDecimal:fa0b630,'0.1E5',9(36)>, currency_id: 1>
  46. Shared Example Group: "except editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:245
  47. # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:275:in `block (3 levels) in <top (required)>'
  48.  
  49. 9) User abilities when rop behaves like base rights company abilities has ability to read managed companies
  50. Failure/Error: should be_able_to :read, edited_company
  51. expected to be able to :read #<Company id: 13677, title: "company_336", old_phones: "1-800-692-7753, 1-800-275-2273", email: "info@company_336.com", url: "company_333_site.com", packet_id: 0, region_id: 31935, first_user_binding_date: nil, packet_starts: nil, packet_ends: nil, status: "A", product_count: nil, archive_product_count: nil, unique_visits_count: nil, last_unique_visits_count: nil, created_at: "2015-11-27 11:46:28", updated_at: "2015-11-27 11:46:28", state: "active", members: nil, sites: nil, icq: nil, skype: nil, products_change_date: nil, deals_count: 0, deals_change_date: nil, site_view_statistics: 0, source_id: 336, source_created_at: nil, stage_id: nil, source_state: "accepted", comment: nil, actual: nil, products_limit: nil, title_md: nil, online_store_type_id: nil, client_id: 3905, paid_placement_started_at: nil, paid_service_started_at: nil, paid_placement_expired_at: nil, current_activity_starts_on: nil, current_activity_ends_on: nil, domain_expiration_date: nil, regions_for_publication: nil, amount_for_publication: nil>
  52. Shared Example Group: "base rights" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:225
  53. # ./spec/models/user_abilities_all_roles_examples.rb:59:in `block (3 levels) in <top (required)>'
  54.  
  55. 10) User abilities when rop behaves like base rights company abilities when user without region has ability to read edited companies in any region
  56. Failure/Error: should be_able_to :read, edited_company_with_region
  57. expected to be able to :read #<Company id: 13700, title: "company_360", old_phones: "1-800-692-7753, 1-800-275-2273", email: "info@company_360.com", url: "company_357_site.com", packet_id: 0, region_id: 31983, first_user_binding_date: nil, packet_starts: nil, packet_ends: nil, status: "A", product_count: nil, archive_product_count: nil, unique_visits_count: nil, last_unique_visits_count: nil, created_at: "2015-11-27 11:46:30", updated_at: "2015-11-27 11:46:30", state: "active", members: nil, sites: nil, icq: nil, skype: nil, products_change_date: nil, deals_count: 0, deals_change_date: nil, site_view_statistics: 0, source_id: 360, source_created_at: nil, stage_id: nil, source_state: "accepted", comment: nil, actual: nil, products_limit: nil, title_md: nil, online_store_type_id: nil, client_id: 3910, paid_placement_started_at: nil, paid_service_started_at: nil, paid_placement_expired_at: nil, current_activity_starts_on: nil, current_activity_ends_on: nil, domain_expiration_date: nil, regions_for_publication: nil, amount_for_publication: nil>
  58. Shared Example Group: "base rights" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:225
  59. # ./spec/models/user_abilities_all_roles_examples.rb:30:in `block (4 levels) in <top (required)>'
  60.  
  61. 11) User abilities when rop behaves like base rights company abilities when region assigned to user has ability to read managed companies in different_region region
  62. Failure/Error: should be_able_to :read, edited_company_with_different_region
  63. expected to be able to :read #<Company id: 13713, title: "company_373", old_phones: "1-800-692-7753, 1-800-275-2273", email: "info@company_373.com", url: "company_370_site.com", packet_id: 0, region_id: 32011, first_user_binding_date: nil, packet_starts: nil, packet_ends: nil, status: "A", product_count: nil, archive_product_count: nil, unique_visits_count: nil, last_unique_visits_count: nil, created_at: "2015-11-27 11:46:31", updated_at: "2015-11-27 11:46:31", state: "active", members: nil, sites: nil, icq: nil, skype: nil, products_change_date: nil, deals_count: 0, deals_change_date: nil, site_view_statistics: 0, source_id: 373, source_created_at: nil, stage_id: nil, source_state: "accepted", comment: nil, actual: nil, products_limit: nil, title_md: nil, online_store_type_id: nil, client_id: 3913, paid_placement_started_at: nil, paid_service_started_at: nil, paid_placement_expired_at: nil, current_activity_starts_on: nil, current_activity_ends_on: nil, domain_expiration_date: nil, regions_for_publication: nil, amount_for_publication: nil>
  64. Shared Example Group: "base rights" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:225
  65. # ./spec/models/user_abilities_all_roles_examples.rb:49:in `block (4 levels) in <top (required)>'
  66.  
  67. 12) User abilities when rop behaves like only admin_cfo_rop_sellerchief lot abilities when lot has payment has ability revert lot
  68. Failure/Error: should be_able_to :update, lot_with_payment
  69. expected to be able to :update #<Lots::Base id: 1370, created_at: nil, updated_at: nil, sequential_id: nil, account_number: nil, start_date_old: nil, end_date_old: nil, pay_up_to: "2015-12-03 19:00:00", edition_id_old: nil, service_id: 1365, service_price: #<BigDecimal:f1c85e0,'0.0',9(18)>, summary_price: #<BigDecimal:102fc898,'0.1E5',9(36)>, discount: #<BigDecimal:f1c7488,'0.0',9(18)>, company_id: 1357, old_payer_id: nil, user_id: 1369, old_self_payer_id: nil, custom_number: nil, piss_off: false, fully_paid_at: nil, packet_id: 2, commercial_region_id: 1360, limit_old: nil, author_id: 1364, just_enable_packet_old: false, amount_old: 1, one_unit_cost_old: #<BigDecimal:f2b4c88,'0.0',9(18)>, position: nil, bill_id: 1353, activation_attributes: {:type=>LotActivationPrepay}, with_journal_old: false, custom_lot_attributes: {"start_date"=>Fri, 27 Nov 2015, "end_date"=>Sun, 06 Mar 2016}, type: "", summary_price_currency: #<BigDecimal:102fbc18,'0.1E5',9(36)>, currency_id: 1>
  70. Shared Example Group: "only admin_cfo_rop_sellerchief" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:229
  71. # ./spec/models/user_abilities_admin_role_examples.rb:741:in `block (4 levels) in <top (required)>'
  72.  
  73. 13) User abilities when rop behaves like only admin_cfo_rop_sellerchief lot abilities when lot has statement has ability revert lot
  74. Failure/Error: should be_able_to :update, lot_with_statement
  75. expected to be able to :update #<Lots::Base id: 1397, created_at: nil, updated_at: nil, sequential_id: nil, account_number: nil, start_date_old: nil, end_date_old: nil, pay_up_to: "2015-12-03 19:00:00", edition_id_old: nil, service_id: 1392, service_price: #<BigDecimal:f1c85e0,'0.0',9(18)>, summary_price: #<BigDecimal:fc999d8,'0.1E5',9(36)>, discount: #<BigDecimal:f1c7488,'0.0',9(18)>, company_id: 1384, old_payer_id: nil, user_id: 1396, old_self_payer_id: nil, custom_number: nil, piss_off: false, fully_paid_at: nil, packet_id: 2, commercial_region_id: 1387, limit_old: nil, author_id: 1391, just_enable_packet_old: false, amount_old: 1, one_unit_cost_old: #<BigDecimal:f2b4c88,'0.0',9(18)>, position: nil, bill_id: 1380, activation_attributes: {:type=>LotActivationPrepay}, with_journal_old: false, custom_lot_attributes: {"start_date"=>Fri, 27 Nov 2015, "end_date"=>Sun, 06 Mar 2016}, type: "", summary_price_currency: #<BigDecimal:fc98d58,'0.1E5',9(36)>, currency_id: 1>
  76. Shared Example Group: "only admin_cfo_rop_sellerchief" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:229
  77. # ./spec/models/user_abilities_admin_role_examples.rb:746:in `block (4 levels) in <top (required)>'
  78.  
  79. 14) Client Scopes email_trimmed_ilike should include #<Client id: 4146, client_source_id: nil, url: "client_371_site.com", title: "client_371", main_company_id: 14679, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22"> and #<Client id: 4147, client_source_id: nil, url: "client_372_site.com", title: "client_372", main_company_id: 14680, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22">
  80. Failure/Error: it { expect(Client.email_trimmed_ilike('test')).to include(client1, client2) }
  81. expected [] to include #<Client id: 4146, client_source_id: nil, url: "client_371_site.com", title: "client_371", main_company_id: 14679, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22"> and #<Client id: 4147, client_source_id: nil, url: "client_372_site.com", title: "client_372", main_company_id: 14680, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22">
  82. Diff:
  83. @@ -1,3 +1,2 @@
  84. -[#<Client id: 4146, client_source_id: nil, url: "client_371_site.com", title: "client_371", main_company_id: 14679, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22">,
  85. - #<Client id: 4147, client_source_id: nil, url: "client_372_site.com", title: "client_372", main_company_id: 14680, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22">]
  86. +[]
  87.  
  88. # ./spec/models/client_spec.rb:1073:in `block (4 levels) in <top (required)>'
  89.  
  90. 15) User instance methods .build_editors_list when rkr behaves like all editors & rkrs return all rkrs and editors for department
  91. Failure/Error: should =~ [[rkr.name, rkr.id], [editor.name, editor.id]]
  92. expected collection contained: [["user_2226", 15842], ["user_2227", 15843]]
  93. actual collection contained: []
  94. the missing elements were: [["user_2226", 15842], ["user_2227", 15843]]
  95. Shared Example Group: "all editors & rkrs" called from ./spec/models/user_spec.rb:370
  96. # ./spec/models/user_spec.rb:359:in `block (5 levels) in <top (required)>'
  97.  
  98. 16) User instance methods .build_editors_list when rop behaves like all editors & rkrs return all rkrs and editors for department
  99. Failure/Error: should =~ [[rkr.name, rkr.id], [editor.name, editor.id]]
  100. expected collection contained: [["user_2229", 15845], ["user_2230", 15846]]
  101. actual collection contained: []
  102. the missing elements were: [["user_2229", 15845], ["user_2230", 15846]]
  103. Shared Example Group: "all editors & rkrs" called from ./spec/models/user_spec.rb:365
  104. # ./spec/models/user_spec.rb:359:in `block (5 levels) in <top (required)>'
  105.  
  106. 17) User instance methods .build_users_list when manager list without 'no' option should build active managers list without 'no' option
  107. Failure/Error: expect(rop_3.build_users_list).to eq manager_list
  108.  
  109. expected: [["abc", 15852], ["ghi", 15854], ["opr", 15856]]
  110. got: [["ghi", 15854]]
  111.  
  112. (compared using ==)
  113. # ./spec/models/user_spec.rb:189:in `block (5 levels) in <top (required)>'
  114.  
  115. 18) User instance methods .build_managers_list for users without department for rkr method should return rkrs and editors and self
  116. Failure/Error: expect(rkr_without_department.build_managers_list).to eq [
  117.  
  118. expected: [["editor_a", 16028], ["editor_b", 16029], ["rkr_a", 16024], ["rkr_b", 16025]]
  119. got: [["rkr_b", 16025]]
  120.  
  121. (compared using ==)
  122. # ./spec/models/user_spec.rb:325:in `block (6 levels) in <top (required)>'
  123.  
  124. 19) User instance methods .build_managers_list for users without department when 'need_join_rkr' is false for rop method should return rops and sellers from his department and self
  125. Failure/Error: expect(rop_without_department.build_managers_list(need_join_rkr: false)).to eq [
  126.  
  127. expected: [["rop_a", 16065], ["rop_b", 16066], ["seller_a", 16069], ["seller_b", 16070]]
  128. got: [["rop_b", 16066]]
  129.  
  130. (compared using ==)
  131. # ./spec/models/user_spec.rb:307:in `block (7 levels) in <top (required)>'
  132.  
  133. 20) User instance methods .build_managers_list for users without department when 'need_join_rkr' is true for seller method should return only rkr users from his department and self
  134. Failure/Error: expect(seller_without_department.build_managers_list(need_join_rkr: true)).to eq [
  135.  
  136. expected: [["rkr_a", 16076], ["rkr_b", 16077], ["seller_b", 16083]]
  137. got: [["seller_b", 16083]]
  138.  
  139. (compared using ==)
  140. # ./spec/models/user_spec.rb:278:in `block (7 levels) in <top (required)>'
  141.  
  142. 21) User instance methods .build_managers_list for users without department when 'need_join_rkr' is true for rop method should return rkrs, rops and sellers from his department and self
  143. Failure/Error: expect(rop_without_department.build_managers_list(need_join_rkr: true)).to eq [
  144.  
  145. expected: [["rkr_a", 16089], ["rkr_b", 16090], ["rop_a", 16091], ["rop_b", 16092], ["seller_a", 16095], ["seller_b", 16096]]
  146. got: [["rop_b", 16092]]
  147.  
  148. (compared using ==)
  149. # ./spec/models/user_spec.rb:287:in `block (7 levels) in <top (required)>'
  150.  
  151. 22) User scopes .build_users_list when rop role should include ["user_2273", 16101]
  152. Failure/Error: it { should include [admin.name, admin.id] }
  153. expected [["user_2274", 16102]] to include ["user_2273", 16101]
  154. # ./spec/models/user_spec.rb:706:in `block (5 levels) in <top (required)>'
  155.  
  156. 23) User scopes .build_users_list when rop role should include ["user_2280", 16108]
  157. Failure/Error: it { should include [seller.name, seller.id] }
  158. expected [["user_2281", 16109]] to include ["user_2280", 16108]
  159. # ./spec/models/user_spec.rb:704:in `block (5 levels) in <top (required)>'
  160.  
  161. 24) User scopes .build_users_list when rkr role should include ["user_2285", 16113]
  162. Failure/Error: it { should include [editor.name, editor.id] }
  163. expected [["user_2286", 16114]] to include ["user_2285", 16113]
  164. # ./spec/models/user_spec.rb:718:in `block (5 levels) in <top (required)>'
  165.  
  166. 25) Nup::StatementDecorator#options_for_send
  167. Failure/Error: it { new_data['ДоговорКонтрагента'].should eq(decorator.bill.accounting_center.try(:nup_contract_id) || NupInfo::DEFAULT_IDS[:empty]) }
  168. ArgumentError:
  169. wrong number of arguments (0 for 1)
  170. # ./app/models/accounting_center.rb:49:in `nup_contract_id'
  171. # ./spec/decorators/nup/statement_decorator_spec.rb:72:in `block (3 levels) in <top (required)>'
  172.  
  173. Finished in 8 minutes 5 seconds
  174. 1153 examples, 25 failures
  175.  
  176. Failed examples:
  177.  
  178. rspec ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:484 # User abilities when rop behaves like except cfo_seller_editor_cco has ability to read other managers companies
  179. rspec ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:551 # User abilities when rop behaves like except cfo_seller_editor_cco has ability to update managed client
  180. rspec ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:520 # User abilities when rop behaves like except cfo_seller_editor_cco region routines when region assigned to user has ability to update companies in different region
  181. rspec ./spec/models/user_abilities_rop_rkr_sup_roles_examples.rb:53 # User abilities when rop behaves like except rkr_sup_editor_cco has ability revert single lot
  182. rspec ./spec/models/user_abilities_admin_role_examples.rb:406 # User abilities when rop behaves like except admin_cfo has not ability to update inactive companies
  183. rspec ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:67 # User abilities when rop behaves like except cfo when different department has ability to update all operations without result
  184. rspec ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:78 # User abilities when rop behaves like except cfo operation abilities when author without department has ability to update all operations without result
  185. rspec ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:274 # User abilities when rop behaves like except editor_cco single lot has ability to revert ShortLot
  186. rspec ./spec/models/user_abilities_all_roles_examples.rb:57 # User abilities when rop behaves like base rights company abilities has ability to read managed companies
  187. rspec ./spec/models/user_abilities_all_roles_examples.rb:29 # User abilities when rop behaves like base rights company abilities when user without region has ability to read edited companies in any region
  188. rspec ./spec/models/user_abilities_all_roles_examples.rb:48 # User abilities when rop behaves like base rights company abilities when region assigned to user has ability to read managed companies in different_region region
  189. rspec ./spec/models/user_abilities_admin_role_examples.rb:740 # User abilities when rop behaves like only admin_cfo_rop_sellerchief lot abilities when lot has payment has ability revert lot
  190. rspec ./spec/models/user_abilities_admin_role_examples.rb:745 # User abilities when rop behaves like only admin_cfo_rop_sellerchief lot abilities when lot has statement has ability revert lot
  191. rspec ./spec/models/client_spec.rb:1073 # Client Scopes email_trimmed_ilike should include #<Client id: 4146, client_source_id: nil, url: "client_371_site.com", title: "client_371", main_company_id: 14679, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22"> and #<Client id: 4147, client_source_id: nil, url: "client_372_site.com", title: "client_372", main_company_id: 14680, payer_id: nil, self_payer_id: nil, manager_id: nil, manager_assigned_at: nil, editor_id: nil, editor_assigned_at: nil, created_at: "2015-11-27 11:50:22", updated_at: "2015-11-27 11:50:22">
  192. rspec ./spec/models/user_spec.rb:358 # User instance methods .build_editors_list when rkr behaves like all editors & rkrs return all rkrs and editors for department
  193. rspec ./spec/models/user_spec.rb:358 # User instance methods .build_editors_list when rop behaves like all editors & rkrs return all rkrs and editors for department
  194. rspec ./spec/models/user_spec.rb:188 # User instance methods .build_users_list when manager list without 'no' option should build active managers list without 'no' option
  195. rspec ./spec/models/user_spec.rb:324 # User instance methods .build_managers_list for users without department for rkr method should return rkrs and editors and self
  196. rspec ./spec/models/user_spec.rb:306 # User instance methods .build_managers_list for users without department when 'need_join_rkr' is false for rop method should return rops and sellers from his department and self
  197. rspec ./spec/models/user_spec.rb:277 # User instance methods .build_managers_list for users without department when 'need_join_rkr' is true for seller method should return only rkr users from his department and self
  198. rspec ./spec/models/user_spec.rb:286 # User instance methods .build_managers_list for users without department when 'need_join_rkr' is true for rop method should return rkrs, rops and sellers from his department and self
  199. rspec ./spec/models/user_spec.rb:706 # User scopes .build_users_list when rop role should include ["user_2273", 16101]
  200. rspec ./spec/models/user_spec.rb:704 # User scopes .build_users_list when rop role should include ["user_2280", 16108]
  201. rspec ./spec/models/user_spec.rb:718 # User scopes .build_users_list when rkr role should include ["user_2285", 16113]
  202. rspec ./spec/decorators/nup/statement_decorator_spec.rb:72 # Nup::StatementDecorator#options_for_send
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement