Sha256: d3eacac24211f412dd288704d66c716940052155e6ef832d0b4d44868f5d8022

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

# -*- coding: utf-8 -*-
require "sixarm_ruby_to_id_test"

describe Date do

  describe "#to_date_id" do
    it "casts to a date id YYYY-MM-DD" do
      Date.parse("2000-12-31").to_date_id.must_equal "2000-12-31"
    end
  end

  describe "#to_date_ids" do
    it "casts to a date id YYYY-MM-DD list" do
      Date.parse("2000-12-31").to_date_ids.must_equal ["2000-12-31"]
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sixarm_ruby_to_id-2.0.0 test/sixarm_ruby_to_id_test/date_test.rb
sixarm_ruby_to_id-1.1.3 test/sixarm_ruby_to_id_test/date_test.rb
sixarm_ruby_to_id-1.1.2 test/sixarm_ruby_to_id_test/date_test.rb
sixarm_ruby_to_id-1.1.1 test/sixarm_ruby_to_id_test/date_test.rb