Sha256: fb53f46e045734066785d9740e8e1ac5b6cf9ad77437e6872f65b5381c2fd986

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

require 'test_helper'

class CassandraObject::IdentiyTest < CassandraObject::TestCase
  test 'equality of new records' do
    assert_not_equal Issue.new, Issue.new
  end

  test 'equality' do
    first_issue = Issue.create
    second_issue = Issue.create

    assert_equal first_issue, first_issue
    assert_not_equal first_issue, second_issue
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.0.0 test/identity_test.rb