From 429bf132da36f19f373ef5b3a2f785ed78864495 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 17 Aug 2018 15:09:39 +1000 Subject: [PATCH] Test creating a fee, not updating The spec for creating an enterprise fee didn't actually create a new fee. Because all enterprise fees are displayed, it changed an existing fee. --- spec/features/admin/enterprise_fees_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/admin/enterprise_fees_spec.rb b/spec/features/admin/enterprise_fees_spec.rb index 8d18152d09..555138ccb8 100644 --- a/spec/features/admin/enterprise_fees_spec.rb +++ b/spec/features/admin/enterprise_fees_spec.rb @@ -142,13 +142,12 @@ feature %q{ end it "creates enterprise fees" do - ef2 - visit edit_admin_enterprise_path(distributor1) within(".side_menu") { click_link 'Enterprise Fees' } click_link "Create One Now" select distributor1.name, from: 'enterprise_fee_set_collection_attributes_0_enterprise_id' + select 'Packing', from: 'enterprise_fee_set_collection_attributes_0_fee_type' fill_in 'enterprise_fee_set_collection_attributes_0_name', with: 'foo' select 'GST', from: 'enterprise_fee_set_collection_attributes_0_tax_category_id' select 'Flat Percent', from: 'enterprise_fee_set_collection_attributes_0_calculator_type'