Sha256: 3aac8b729a40c9f35f0f66fae852b7a248568f25ed3fc55ef56f508b9cace80d

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

require 'couchbase-orm'

class Doc < CouchbaseOrm::Base
  attribute :title
end

describe 'CouchbaseOrm::Changeable' do
  it 'should have empty changes after loading a record from db' do
    doc = Doc.create(title: 'Test')
    expect(doc.changes).to be_empty
    doc = Doc.find(doc.id)
    expect(doc.changes).to be_empty
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
couchbase-orm-2.0.4 spec/couchbase-orm/changeable_spec.rb
couchbase-orm-2.0.3 spec/couchbase-orm/changeable_spec.rb
couchbase-orm-2.0.2 spec/couchbase-orm/changeable_spec.rb
couchbase-orm-2.0.1 spec/couchbase-orm/changeable_spec.rb
couchbase-orm-2.0.0 spec/couchbase-orm/changeable_spec.rb