From 211398bd9d63c82150e492d6762dc6389601bc3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 10 Oct 2019 01:55:21 +0200 Subject: [PATCH] Use a more expressive name for time zone tests "With different time zone" didn't clarify which time zone was different nor what it was different to. --- spec/models/milestone_spec.rb | 2 +- spec/models/poll/officer_spec.rb | 2 +- spec/spec_helper.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb index 4ad6fcd6e..4904a1ab1 100644 --- a/spec/models/milestone_spec.rb +++ b/spec/models/milestone_spec.rb @@ -44,7 +44,7 @@ describe Milestone do end describe ".published" do - it "uses the application's time zone date", :with_different_time_zone do + it "uses the application's time zone date", :application_zone_west_of_system_zone do published_in_local_time_zone = create(:milestone, publication_date: Date.today) diff --git a/spec/models/poll/officer_spec.rb b/spec/models/poll/officer_spec.rb index 199bf487f..8c9e9525c 100644 --- a/spec/models/poll/officer_spec.rb +++ b/spec/models/poll/officer_spec.rb @@ -127,7 +127,7 @@ describe Poll::Officer do describe "todays_booths" do let(:officer) { create(:poll_officer) } - it "returns booths for the application's time zone date", :with_different_time_zone do + it "returns booths for the application's time zone date", :application_zone_west_of_system_zone do assignment_with_local_time_zone = create(:poll_officer_assignment, date: Date.today, officer: officer) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 18b996d38..57172b71f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -109,7 +109,7 @@ RSpec.configure do |config| travel_back end - config.before(:each, :with_different_time_zone) do + config.before(:each, :application_zone_west_of_system_zone) do application_zone = ActiveSupport::TimeZone.new("UTC") system_zone = ActiveSupport::TimeZone.new("Madrid")