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.79.1 spec/support/rspec_matchers.rb
pact_broker-2.79.0 spec/support/rspec_matchers.rb
pact_broker-2.78.1 spec/support/rspec_matchers.rb
pact_broker-2.78.0 spec/support/rspec_matchers.rb
pact_broker-2.77.0 spec/support/rspec_matchers.rb
pact_broker-2.76.2 spec/support/rspec_matchers.rb
pact_broker-2.76.1 spec/support/rspec_matchers.rb
pact_broker-2.76.0 spec/support/rspec_matchers.rb
pact_broker-2.75.0 spec/support/rspec_matchers.rb
pact_broker-2.74.1 spec/support/rspec_matchers.rb
pact_broker-2.74.0 spec/support/rspec_matchers.rb
pact_broker-2.73.0 spec/support/rspec_matchers.rb
pact_broker-2.72.0 spec/support/rspec_matchers.rb
pact_broker-2.71.0 spec/support/rspec_matchers.rb
pact_broker-2.70.0 spec/support/rspec_matchers.rb
pact_broker-2.69.0 spec/support/rspec_matchers.rb
pact_broker-2.68.1 spec/support/rspec_matchers.rb
pact_broker-2.68.0 spec/support/rspec_matchers.rb
pact_broker-2.67.0 spec/support/rspec_matchers.rb
pact_broker-2.66.0 spec/support/rspec_matchers.rb