Sha256: 64080a937f106127669cc11c9a5fcdffd4f808a86fe4960131b7b85c38ed365c

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'

describe EventCalendar::ApplicationHelper do
  describe "time_with_zones (singular)" do
    it "returns times" do
      time = Time.now
      helper.time_with_zones(time).should eq [
        ["EST", time.in_time_zone("Eastern Time (US & Canada)").strftime(TIME_BASE)],
        ["CST", time.in_time_zone("Central Time (US & Canada)").strftime(TIME_BASE)],
        ["MST", time.in_time_zone("Mountain Time (US & Canada)").strftime(TIME_BASE)],
        ["PST", time.in_time_zone("Pacific Time (US & Canada)").strftime(TIME_BASE)]
      ]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_calendar_engine-0.1.11 spec/helpers/event_calendar/application_helper_spec.rb