Sha256: de968101c4031123746fea80789958404fafd91183cd59e71056092c60246a59

Contents?: true

Size: 335 Bytes

Versions: 4

Compression:

Stored size: 335 Bytes

Contents

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

describe Time do

  describe "#stamp" do

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

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

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sixarm_ruby_time_stamp-2.0.0 test/sixarm_ruby_time_stamp_test/time_test.rb
sixarm_ruby_time_stamp-1.1.6 test/sixarm_ruby_time_stamp_test/time_test.rb
sixarm_ruby_time_stamp-1.1.5 test/sixarm_ruby_time_stamp_test/time_test.rb
sixarm_ruby_time_stamp-1.1.4 test/sixarm_ruby_time_stamp_test/time_test.rb