Skip to content

Commit 8ba192f

Browse files
jyeharrycompwron
authored andcommitted
Replace date string with Date object
1 parent a883d5d commit 8ba192f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/system/mileage_rates/mileage_rates_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
it "add new mileage rate" do
1414
click_on "New Mileage Rate"
1515
expect(page).to have_text("New Mileage Rate")
16-
fill_in "Effective date", with: "01/02/2020"
16+
fill_in "Effective date", with: Date.new(2020, 1, 2)
1717
fill_in "Amount", with: 1.35
1818
uncheck "Currently active?"
1919
click_on "Save Mileage Rate"

0 commit comments

Comments
 (0)