Sha256: 6cfd9aee83a88a2fdca91bf404aa726d7bf95d19dc382a8422600e4a9e7cb5d4

Contents?: true

Size: 249 Bytes

Versions: 12

Compression:

Stored size: 249 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

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.89.1 spec/support/rspec_matchers.rb
pact_broker-2.89.0 spec/support/rspec_matchers.rb
pact_broker-2.88.0 spec/support/rspec_matchers.rb
pact_broker-2.87.0 spec/support/rspec_matchers.rb
pact_broker-2.86.0 spec/support/rspec_matchers.rb
pact_broker-2.85.1 spec/support/rspec_matchers.rb
pact_broker-2.85.0 spec/support/rspec_matchers.rb
pact_broker-2.84.0 spec/support/rspec_matchers.rb
pact_broker-2.83.0 spec/support/rspec_matchers.rb
pact_broker-2.82.0 spec/support/rspec_matchers.rb
pact_broker-2.81.0 spec/support/rspec_matchers.rb
pact_broker-2.80.0 spec/support/rspec_matchers.rb