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.65.0 spec/support/rspec_matchers.rb
pact_broker-2.64.0 spec/support/rspec_matchers.rb
pact_broker-2.63.0 spec/support/rspec_matchers.rb
pact_broker-2.62.0 spec/support/rspec_matchers.rb
pact_broker-2.61.0 spec/support/rspec_matchers.rb
pact_broker-2.60.1 spec/support/rspec_matchers.rb
pact_broker-2.60.0 spec/support/rspec_matchers.rb
pact_broker-2.59.2 spec/support/rspec_matchers.rb
pact_broker-2.59.1 spec/support/rspec_matchers.rb
pact_broker-2.59.0 spec/support/rspec_matchers.rb
pact_broker-2.58.3 spec/support/rspec_matchers.rb
pact_broker-2.58.2 spec/support/rspec_matchers.rb
pact_broker-2.58.0 spec/support/rspec_matchers.rb
pact_broker-2.57.0 spec/support/rspec_matchers.rb
pact_broker-2.56.1 spec/support/rspec_matchers.rb
pact_broker-2.56.0 spec/support/rspec_matchers.rb
pact_broker-2.55.0 spec/support/rspec_matchers.rb
pact_broker-2.54.0 spec/support/rspec_matchers.rb
pact_broker-2.53.0 spec/support/rspec_matchers.rb
pact_broker-2.52.2 spec/support/rspec_matchers.rb