diff --git a/spec/system/mileage_rates/mileage_rates_spec.rb b/spec/system/mileage_rates/mileage_rates_spec.rb index 15e974d3ea..e9ec7a20ff 100644 --- a/spec/system/mileage_rates/mileage_rates_spec.rb +++ b/spec/system/mileage_rates/mileage_rates_spec.rb @@ -13,7 +13,7 @@ it "add new mileage rate" do click_on "New Mileage Rate" expect(page).to have_text("New Mileage Rate") - fill_in "Effective date", with: "01/02/2020" + fill_in "Effective date", with: Date.new(2020, 1, 2) fill_in "Amount", with: 1.35 uncheck "Currently active?" click_on "Save Mileage Rate"