From c291601d9f5faaf484dcf4af227e7857a2b1fa5f Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Mon, 25 Mar 2019 15:04:40 +0000 Subject: [PATCH] Fix rubocop warnings in enterprise_fee_summary report spec --- .../reports/enterprise_fee_summaries_spec.rb | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/spec/features/admin/reports/enterprise_fee_summaries_spec.rb b/spec/features/admin/reports/enterprise_fee_summaries_spec.rb index be03f7d393..edbd48bcd0 100644 --- a/spec/features/admin/reports/enterprise_fee_summaries_spec.rb +++ b/spec/features/admin/reports/enterprise_fee_summaries_spec.rb @@ -86,8 +86,10 @@ xfeature "enterprise fee summaries", js: true do end context "when logged in as enterprise user" do - let!(:order) { create(:completed_order_with_fees, order_cycle: order_cycle, distributor: distributor) } - + let!(:order) do + create(:completed_order_with_fees, order_cycle: order_cycle, + distributor: distributor) + end let(:current_user) { distributor.owner } it "shows available options for the enterprise" do @@ -102,8 +104,10 @@ xfeature "enterprise fee summaries", js: true do end context "when logged in as admin" do - let!(:order) { create(:completed_order_with_fees, order_cycle: order_cycle, distributor: distributor) } - + let!(:order) do + create(:completed_order_with_fees, order_cycle: order_cycle, + distributor: distributor) + end let(:current_user) { create(:admin_user) } it "generates file with data for all enterprises" do @@ -115,9 +119,14 @@ xfeature "enterprise fee summaries", js: true do end context "when logged in as enterprise user" do - let!(:order) { create(:completed_order_with_fees, order_cycle: order_cycle, distributor: distributor) } - let!(:other_order) { create(:completed_order_with_fees, order_cycle: other_order_cycle, distributor: other_distributor) } - + let!(:order) do + create(:completed_order_with_fees, order_cycle: order_cycle, + distributor: distributor) + end + let!(:other_order) do + create(:completed_order_with_fees, order_cycle: other_order_cycle, + distributor: other_distributor) + end let(:current_user) { distributor.owner } it "generates file with data for the enterprise" do @@ -134,8 +143,14 @@ xfeature "enterprise fee summaries", js: true do let!(:second_distributor) { create(:distributor_enterprise) } let!(:second_order_cycle) { create(:simple_order_cycle, coordinator: second_distributor) } - let!(:order) { create(:completed_order_with_fees, order_cycle: order_cycle, distributor: distributor) } - let!(:second_order) { create(:completed_order_with_fees, order_cycle: second_order_cycle, distributor: second_distributor) } + let!(:order) do + create(:completed_order_with_fees, order_cycle: order_cycle, + distributor: distributor) + end + let!(:second_order) do + create(:completed_order_with_fees, order_cycle: second_order_cycle, + distributor: second_distributor) + end let(:current_user) { create(:admin_user) }