Sha256: 1108f23771ebc10ada09bca9b122671bf353a6f78eac1978aa7a541b0c2f1b02

Contents?: true

Size: 352 Bytes

Versions: 4

Compression:

Stored size: 352 Bytes

Contents

require 'test_helper'

class CassandraObject::DirtyTest < CassandraObject::TestCase
  class TestRecord < CassandraObject::Base
    key :uuid
    self.column_family = 'Issues'
    string :name
  end

  test 'save clears dirty' do
    record = TestRecord.new(name: 'foo')
    assert record.changed?

    record.save

    assert !record.changed?
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.6.4 test/dirty_test.rb
gotime-cassandra_object-2.6.3 test/dirty_test.rb
gotime-cassandra_object-2.6.1 test/dirty_test.rb
gotime-cassandra_object-2.6.0 test/dirty_test.rb