Sha256: 68d7b20636f7e5b7584675de85d0d304d8b56e79baade7467bd61f703488edf4

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

# -*- coding: utf-8 -*-
require 'minitest/autorun'
require 'simplecov'
SimpleCov.start
require 'sixarm_ruby_date_stamp'

describe Date do

 describe "#stamp" do

  it "with class method" do
    Date.stamp.must_match /^\d\d\d\d-\d\d-\d\d$/
  end

  it "with_instance_method" do
    Date.today.stamp.must_match /^\d\d\d\d-\d\d-\d\d$/
  end
    
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_date_stamp-1.1.0 test/sixarm_ruby_date_stamp_test.rb