From 8808a6d2a326f6139c354b85450f42d9270ac47b Mon Sep 17 00:00:00 2001 From: Rob Bavey Date: Tue, 6 Jun 2017 22:44:04 -0400 Subject: [PATCH] Update locations for new team members Add location info for Armin, Jake and Rob --- lib/jarvis/location_times.rb | 12 ++++++------ spec/jarvis/location_times_spec.rb | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/jarvis/location_times.rb b/lib/jarvis/location_times.rb index c0e90e8..b679c12 100644 --- a/lib/jarvis/location_times.rb +++ b/lib/jarvis/location_times.rb @@ -4,12 +4,12 @@ module Jarvis class LocationTimes ZONES = { - ' Berlin' => 'Europe/Berlin', - 'London/Lisbon' => 'Europe/London', - ' Montreal' => 'America/Montreal', - ' Minneapolis' => 'America/Chicago', - 'American Fork' => 'America/Denver', - 'Mountain View' => 'America/Los_Angeles' + ' Berlin/Munich' => 'Europe/Berlin', + ' London/Lisbon' => 'Europe/London', + ' Montreal/Boston' => 'America/Montreal', + 'Minneapolis/Kansas' => 'America/Chicago', + ' American Fork' => 'America/Denver', + ' Mountain View' => 'America/Los_Angeles' } def initialize(utc = Time.now.utc) diff --git a/spec/jarvis/location_times_spec.rb b/spec/jarvis/location_times_spec.rb index 7bc4fc6..3cb6594 100644 --- a/spec/jarvis/location_times_spec.rb +++ b/spec/jarvis/location_times_spec.rb @@ -6,28 +6,28 @@ subject { described_class.new(utc).to_a } context "when an array is generated" do - it "the first entry is berlin" do - expect(subject[0]).to eq(" Berlin Fri 05:30:00 PM") + it "the first entry is berlin/munich" do + expect(subject[0]).to eq(" Berlin/Munich Fri 05:30:00 PM") end it "the second entry is london/lisbon" do - expect(subject[1]).to eq("London/Lisbon Fri 04:30:00 PM") + expect(subject[1]).to eq(" London/Lisbon Fri 04:30:00 PM") end - it "the third entry is montreal" do - expect(subject[2]).to eq(" Montreal Fri 11:30:00 AM") + it "the third entry is montreal/boston" do + expect(subject[2]).to eq(" Montreal/Boston Fri 11:30:00 AM") end - it "the fourth entry is minneapolis" do - expect(subject[3]).to eq(" Minneapolis Fri 10:30:00 AM") + it "the fourth entry is minneapolis/kansas" do + expect(subject[3]).to eq("Minneapolis/Kansas Fri 10:30:00 AM") end it "the fifth entry is american fork" do - expect(subject[4]).to eq("American Fork Fri 09:30:00 AM") + expect(subject[4]).to eq(" American Fork Fri 09:30:00 AM") end it "the sixth entry is mountain view" do - expect(subject[5]).to eq("Mountain View Fri 08:30:00 AM") + expect(subject[5]).to eq(" Mountain View Fri 08:30:00 AM") end end end