Sha256: b3e93bd8d857397cbb3205b48f4879b02dac499e958750b9e7518e644ba75dc1
Contents?: true
Size: 360 Bytes
Versions: 25
Compression:
Stored size: 360 Bytes
Contents
require 'spec_helper' describe CouchPotato::Persistence, '#reload' do let(:db) { CouchPotato.database } it 'returns a new instance from the database' do comment = Comment.new title: 'hello' db.save! comment reloaded = comment.reload expect(reloaded.object_id).to_not eql(comment.object_id) expect(reloaded).to eql(comment) end end
Version data entries
25 entries across 25 versions & 1 rubygems