Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update locations for new team members #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/jarvis/location_times.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
18 changes: 9 additions & 9 deletions spec/jarvis/location_times_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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