Sha256: 663df700adc5326f728ff2ab8bd2c62c59d02bba195e4e8040e414e4c6690610

Contents?: true

Size: 237 Bytes

Versions: 31

Compression:

Stored size: 237 Bytes

Contents

RSpec::Matchers.define :be_iso8601_utc_encoded do 
  match do |string|
    string =~ /^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d[Zz]$/
  end

  failure_message do |string|
    "'#{string}' doesn't look like a UTC IS8601-encoded date"
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
stitches-5.0.0 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-5.0.0.RC1 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.2.2 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.2.1 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.2.0 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.2.0.RC3 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.2.0.RC2 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.2.0.RC1 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.0.2 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.1.0RC2 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.0.1 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.0.0 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-4.0.0.RC1 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-3.8.3 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-3.8.2 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-3.8.1 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-3.8.0 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-3.7.3 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-3.7.2 lib/stitches/spec/be_iso_8601_utc_encoded.rb
stitches-3.7.0 lib/stitches/spec/be_iso_8601_utc_encoded.rb