From beb1b3f3bc803716ae6b0ae21796b908b9d04d99 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 2 Jun 2020 16:11:03 +0100 Subject: [PATCH] Replay 02d46b7c518c799ad4091521652e95b3298dea93 lost in the last merge from master --- spec/features/admin/order_cycles/list_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/admin/order_cycles/list_spec.rb b/spec/features/admin/order_cycles/list_spec.rb index 6021a83f12..ba5f2d4048 100644 --- a/spec/features/admin/order_cycles/list_spec.rb +++ b/spec/features/admin/order_cycles/list_spec.rb @@ -117,10 +117,10 @@ feature ' end describe 'listing order cycles with other locales' do - let!(:oc_de) { create(:simple_order_cycle, name: 'oc', orders_open_at: '2012-01-01 00:00') } + let!(:oc_pt) { create(:simple_order_cycle, name: 'oc', orders_open_at: '2012-01-01 00:00') } around(:each) do |spec| - I18n.locale = :de + I18n.locale = :pt spec.run I18n.locale = :en end @@ -130,7 +130,7 @@ feature ' quick_login_as_admin visit admin_order_cycles_path - within("tr.order-cycle-#{oc_de.id}") do + within("tr.order-cycle-#{oc_pt.id}") do expect(find('input.datetimepicker', match: :first).value).to start_with '2012-01-01 00:00' find('img.ui-datepicker-trigger', match: :first).click end @@ -142,7 +142,7 @@ feature ' find('button.ui-datepicker-close', match: :first).click end - within("tr.order-cycle-#{oc_de.id}") do + within("tr.order-cycle-#{oc_pt.id}") do expect(find('input.datetimepicker', match: :first).value).to eq '2012-01-30 00:00' end end