Sha256: 7fed50124105e7dd12c1fc5a038ee362157bd1d1f69b5f5af93d723b41f24f6e

Contents?: true

Size: 248 Bytes

Versions: 119

Compression:

Stored size: 248 Bytes

Contents

RSpec::Matchers.define :be_datey do |expected|
  match do |actual|
    actual.instance_of?(DateTime) || actual.instance_of?(Time)
  end

  failure_message do |actual|
    "expected #{actual.inspect} to be an instance of DateTime or Time"
  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
pact_broker-2.52.1 spec/support/rspec_matchers.rb
pact_broker-2.52.0 spec/support/rspec_matchers.rb
pact_broker-2.51.0 spec/support/rspec_matchers.rb
pact_broker-2.50.1 spec/support/rspec_matchers.rb
pact_broker-2.50.0 spec/support/rspec_matchers.rb
pact_broker-2.49.0 spec/support/rspec_matchers.rb
pact_broker-2.48.0 spec/support/rspec_matchers.rb
pact_broker-2.47.1 spec/support/rspec_matchers.rb
pact_broker-2.47.0 spec/support/rspec_matchers.rb
pact_broker-2.46.0 spec/support/rspec_matchers.rb
pact_broker-2.45.0 spec/support/rspec_matchers.rb
pact_broker-2.44.0 spec/support/rspec_matchers.rb
pact_broker-2.43.0 spec/support/rspec_matchers.rb
pact_broker-2.42.0 spec/support/rspec_matchers.rb
pact_broker-2.41.0 spec/support/rspec_matchers.rb
pact_broker-2.40.0 spec/support/rspec_matchers.rb
pact_broker-2.39.0 spec/support/rspec_matchers.rb
pact_broker-2.38.1 spec/support/rspec_matchers.rb
pact_broker-2.38.0 spec/support/rspec_matchers.rb
pact_broker-2.37.0 spec/support/rspec_matchers.rb