Sha256: 7d9efc6507cc56fb74a08803c6a2c55e1ded477c1ef6a6ac5468b87632b9e958

Contents?: true

Size: 178 Bytes

Versions: 1

Compression:

Stored size: 178 Bytes

Contents

require 'rspec'

RSpec::Matchers.define :be_timestamp do
  match do |actual|
    @expected = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z/
    actual =~ @expected
  end

  diffable
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stamped-0.2.0 lib/stamped/rspec.rb