Sha256: fcea2e801fef182cd6fd0015bb0f1e54922c6aca33b1a25768f6aeb887ba0148

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

require 'spec_helper'

describe String do

  it "should output a correct time" do
    expect("2014-05-22T07:30:00".generate_time).to eq("07:30")
  end

  it "should output a correct time with PM" do
    expect("2014-05-22T22:30:00".generate_time).to eq("10:30 PM")
  end

  it "should output a correct date" do
    expect("2014-05-22T07:30:00".generate_date).to eq("May 22, 2014")
  end




end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
separate_datetime-0.0.1 spec/separate_datetime_spec.rb