From 9f44b8015d403fd21d8d3a825eb1d582eda12644 Mon Sep 17 00:00:00 2001 From: Tobias Kneuker Date: Thu, 13 Oct 2022 11:46:19 +0200 Subject: [PATCH] fixxing flaky timestamp --- spec/controllers/home_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb index 54a97e28..5fd086fb 100644 --- a/spec/controllers/home_controller_spec.rb +++ b/spec/controllers/home_controller_spec.rb @@ -132,7 +132,7 @@ describe HomeController, type: :controller do describe 'assigns sortings' do let(:fin_trans1) { create :financial_transaction, user: og_user, ordergroup: og_user.ordergroup, note: 'A', amount: 100 } - let(:fin_trans2) { create :financial_transaction, user: og_user, ordergroup: og_user.ordergroup, note: 'B', amount: 200 } + let(:fin_trans2) { create :financial_transaction, user: og_user, ordergroup: og_user.ordergroup, note: 'B', amount: 200, created_on: Time.now + 1.minute } before do fin_trans1