Sha256: 63301c11e4320fb328a1c5d04204598155d1b4dc39a738b613ab30e2f98f80d7

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

require 'spec_helper'
describe Time do
  it "should work out the beginning of a weekend (Friday 3pm)" do
    Time.now.beginning_of_weekend.strftime("%A %I:%M%p").should eql("Friday 03:00PM")
  end

  it "should work out the end of a weekend (Monday 3am)" do
    Time.now.end_of_weekend.strftime("%A %I:%M%p").should eql("Monday 03:00AM")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
by_star-2.1.0.beta2 spec/time_ext_spec.rb
by_star-2.0.0.beta1 spec/time_ext_spec.rb