Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) User abilities when rop behaves like except cfo_seller_editor_cco has ability to read other managers companies
- Failure/Error: should be_able_to :read, other_manager_company
- 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>
- Shared Example Group: "except cfo_seller_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:247
- # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:485:in `block (2 levels) in <top (required)>'
- 2) User abilities when rop behaves like except cfo_seller_editor_cco has ability to update managed client
- Failure/Error: should be_able_to :update, managed_client
- 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>
- Shared Example Group: "except cfo_seller_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:247
- # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:552:in `block (2 levels) in <top (required)>'
- 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
- Failure/Error: should be_able_to :update, edited_company_with_different_region
- 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>
- Shared Example Group: "except cfo_seller_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:247
- # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:521:in `block (4 levels) in <top (required)>'
- 4) User abilities when rop behaves like except rkr_sup_editor_cco has ability revert single lot
- Failure/Error: should be_able_to :update, single_lot
- 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>
- Shared Example Group: "except rkr_sup_editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:252
- # ./spec/models/user_abilities_rop_rkr_sup_roles_examples.rb:54:in `block (2 levels) in <top (required)>'
- 5) User abilities when rop behaves like except admin_cfo has not ability to update inactive companies
- Failure/Error: should_not be_able_to :update, deleted_company
- 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>
- Shared Example Group: "except admin_cfo" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:227
- # ./spec/models/user_abilities_admin_role_examples.rb:407:in `block (2 levels) in <top (required)>'
- 6) User abilities when rop behaves like except cfo when different department has ability to update all operations without result
- Failure/Error: should be_able_to :update, manager_operation_without_result
- 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>
- Shared Example Group: "except cfo" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:241
- # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:68:in `block (3 levels) in <top (required)>'
- 7) User abilities when rop behaves like except cfo operation abilities when author without department has ability to update all operations without result
- Failure/Error: should be_able_to :update, author_operation_without_result
- 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>
- Shared Example Group: "except cfo" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:241
- # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:79:in `block (4 levels) in <top (required)>'
- 8) User abilities when rop behaves like except editor_cco single lot has ability to revert ShortLot
- Failure/Error: should be_able_to :update, short_lot
- 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>
- Shared Example Group: "except editor_cco" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:245
- # ./spec/models/user_abilities_cfo_seller_editor_roles_examples.rb:275:in `block (3 levels) in <top (required)>'
- 9) User abilities when rop behaves like base rights company abilities has ability to read managed companies
- Failure/Error: should be_able_to :read, edited_company
- 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>
- Shared Example Group: "base rights" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:225
- # ./spec/models/user_abilities_all_roles_examples.rb:59:in `block (3 levels) in <top (required)>'
- 10) User abilities when rop behaves like base rights company abilities when user without region has ability to read edited companies in any region
- Failure/Error: should be_able_to :read, edited_company_with_region
- 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>
- Shared Example Group: "base rights" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:225
- # ./spec/models/user_abilities_all_roles_examples.rb:30:in `block (4 levels) in <top (required)>'
- 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
- Failure/Error: should be_able_to :read, edited_company_with_different_region
- 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>
- Shared Example Group: "base rights" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:225
- # ./spec/models/user_abilities_all_roles_examples.rb:49:in `block (4 levels) in <top (required)>'
- 12) User abilities when rop behaves like only admin_cfo_rop_sellerchief lot abilities when lot has payment has ability revert lot
- Failure/Error: should be_able_to :update, lot_with_payment
- 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>
- Shared Example Group: "only admin_cfo_rop_sellerchief" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:229
- # ./spec/models/user_abilities_admin_role_examples.rb:741:in `block (4 levels) in <top (required)>'
- 13) User abilities when rop behaves like only admin_cfo_rop_sellerchief lot abilities when lot has statement has ability revert lot
- Failure/Error: should be_able_to :update, lot_with_statement
- 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>
- Shared Example Group: "only admin_cfo_rop_sellerchief" called from ./spec/models/user_admin_cfo_rop_abilities_spec.rb:229
- # ./spec/models/user_abilities_admin_role_examples.rb:746:in `block (4 levels) in <top (required)>'
- 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">
- Failure/Error: it { expect(Client.email_trimmed_ilike('test')).to include(client1, client2) }
- 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">
- Diff:
- @@ -1,3 +1,2 @@
- -[#<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">,
- - #<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">]
- +[]
- # ./spec/models/client_spec.rb:1073:in `block (4 levels) in <top (required)>'
- 15) User instance methods .build_editors_list when rkr behaves like all editors & rkrs return all rkrs and editors for department
- Failure/Error: should =~ [[rkr.name, rkr.id], [editor.name, editor.id]]
- expected collection contained: [["user_2226", 15842], ["user_2227", 15843]]
- actual collection contained: []
- the missing elements were: [["user_2226", 15842], ["user_2227", 15843]]
- Shared Example Group: "all editors & rkrs" called from ./spec/models/user_spec.rb:370
- # ./spec/models/user_spec.rb:359:in `block (5 levels) in <top (required)>'
- 16) User instance methods .build_editors_list when rop behaves like all editors & rkrs return all rkrs and editors for department
- Failure/Error: should =~ [[rkr.name, rkr.id], [editor.name, editor.id]]
- expected collection contained: [["user_2229", 15845], ["user_2230", 15846]]
- actual collection contained: []
- the missing elements were: [["user_2229", 15845], ["user_2230", 15846]]
- Shared Example Group: "all editors & rkrs" called from ./spec/models/user_spec.rb:365
- # ./spec/models/user_spec.rb:359:in `block (5 levels) in <top (required)>'
- 17) User instance methods .build_users_list when manager list without 'no' option should build active managers list without 'no' option
- Failure/Error: expect(rop_3.build_users_list).to eq manager_list
- expected: [["abc", 15852], ["ghi", 15854], ["opr", 15856]]
- got: [["ghi", 15854]]
- (compared using ==)
- # ./spec/models/user_spec.rb:189:in `block (5 levels) in <top (required)>'
- 18) User instance methods .build_managers_list for users without department for rkr method should return rkrs and editors and self
- Failure/Error: expect(rkr_without_department.build_managers_list).to eq [
- expected: [["editor_a", 16028], ["editor_b", 16029], ["rkr_a", 16024], ["rkr_b", 16025]]
- got: [["rkr_b", 16025]]
- (compared using ==)
- # ./spec/models/user_spec.rb:325:in `block (6 levels) in <top (required)>'
- 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
- Failure/Error: expect(rop_without_department.build_managers_list(need_join_rkr: false)).to eq [
- expected: [["rop_a", 16065], ["rop_b", 16066], ["seller_a", 16069], ["seller_b", 16070]]
- got: [["rop_b", 16066]]
- (compared using ==)
- # ./spec/models/user_spec.rb:307:in `block (7 levels) in <top (required)>'
- 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
- Failure/Error: expect(seller_without_department.build_managers_list(need_join_rkr: true)).to eq [
- expected: [["rkr_a", 16076], ["rkr_b", 16077], ["seller_b", 16083]]
- got: [["seller_b", 16083]]
- (compared using ==)
- # ./spec/models/user_spec.rb:278:in `block (7 levels) in <top (required)>'
- 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
- Failure/Error: expect(rop_without_department.build_managers_list(need_join_rkr: true)).to eq [
- expected: [["rkr_a", 16089], ["rkr_b", 16090], ["rop_a", 16091], ["rop_b", 16092], ["seller_a", 16095], ["seller_b", 16096]]
- got: [["rop_b", 16092]]
- (compared using ==)
- # ./spec/models/user_spec.rb:287:in `block (7 levels) in <top (required)>'
- 22) User scopes .build_users_list when rop role should include ["user_2273", 16101]
- Failure/Error: it { should include [admin.name, admin.id] }
- expected [["user_2274", 16102]] to include ["user_2273", 16101]
- # ./spec/models/user_spec.rb:706:in `block (5 levels) in <top (required)>'
- 23) User scopes .build_users_list when rop role should include ["user_2280", 16108]
- Failure/Error: it { should include [seller.name, seller.id] }
- expected [["user_2281", 16109]] to include ["user_2280", 16108]
- # ./spec/models/user_spec.rb:704:in `block (5 levels) in <top (required)>'
- 24) User scopes .build_users_list when rkr role should include ["user_2285", 16113]
- Failure/Error: it { should include [editor.name, editor.id] }
- expected [["user_2286", 16114]] to include ["user_2285", 16113]
- # ./spec/models/user_spec.rb:718:in `block (5 levels) in <top (required)>'
- 25) Nup::StatementDecorator#options_for_send
- Failure/Error: it { new_data['ДоговорКонтрагента'].should eq(decorator.bill.accounting_center.try(:nup_contract_id) || NupInfo::DEFAULT_IDS[:empty]) }
- ArgumentError:
- wrong number of arguments (0 for 1)
- # ./app/models/accounting_center.rb:49:in `nup_contract_id'
- # ./spec/decorators/nup/statement_decorator_spec.rb:72:in `block (3 levels) in <top (required)>'
- Finished in 8 minutes 5 seconds
- 1153 examples, 25 failures
- Failed examples:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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">
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- rspec ./spec/models/user_spec.rb:706 # User scopes .build_users_list when rop role should include ["user_2273", 16101]
- rspec ./spec/models/user_spec.rb:704 # User scopes .build_users_list when rop role should include ["user_2280", 16108]
- rspec ./spec/models/user_spec.rb:718 # User scopes .build_users_list when rkr role should include ["user_2285", 16113]
- rspec ./spec/decorators/nup/statement_decorator_spec.rb:72 # Nup::StatementDecorator#options_for_send
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement