Sha256: 62236610197168f0bcf55c6a4d99ea788943ba8656920883dc0107535a3d0993

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

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

describe Time do

  describe "#stamp" do

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

    it "with instance method" do
      Time.now.stamp.must_match /^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/
    end
 
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_time_stamp-1.1.0 test/sixarm_ruby_time_stamp_test.rb