Sha256: d3c362836aa1a7b9fbe5a66510318d97586bd93fb4271962e6923a20e37e3516

Contents?: true

Size: 592 Bytes

Versions: 10

Compression:

Stored size: 592 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 [
        ["Eastern", time.in_time_zone("Eastern Time (US & Canada)").strftime(TIME_BASE)],
        ["Central", time.in_time_zone("Central Time (US & Canada)").strftime(TIME_BASE)],
        ["Mountain", time.in_time_zone("Mountain Time (US & Canada)").strftime(TIME_BASE)],
        ["Pacific", time.in_time_zone("Pacific Time (US & Canada)").strftime(TIME_BASE)]
      ]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.10 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.8 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.7 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.6 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.5 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.4 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.3 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.2 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.1 spec/helpers/event_calendar/application_helper_spec.rb
event_calendar_engine-0.2.0 spec/helpers/event_calendar/application_helper_spec.rb