Sha256: 22fd58438146619086caf44b1ac203a25835be859ba2ead12aa69328c104358d

Contents?: true

Size: 126 Bytes

Versions: 4

Compression:

Stored size: 126 Bytes

Contents

class Time
  def ==(other)
    to_i == other.to_i &&
      usec - (usec % 1000) == other.usec - (other.usec % 1000)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-time_range-0.4.1 spec/support/time.rb
mongoid-time_range-0.4.0 spec/support/time.rb
mongoid-time_range-0.3.0 spec/support/time.rb
mongoid-time_range-0.2.0 spec/support/time.rb