Sha256: 2db1cb9668f85e2eeeb79b9d6a7f59d4f0c3073dd22334995e951f1e6b9f0715
Contents?: true
Size: 673 Bytes
Versions: 24
Compression:
Stored size: 673 Bytes
Contents
require 'spec_helper' describe Volt::Models::Helpers::Model do describe "saved_state" do it 'should start not_saved for a buffer' do item = the_page._items.buffer expect(item.saved_state).to eq(:not_saved) end it 'should move to saved when the buffer is saved' do item = the_page._items.buffer item.save!.then do expect(item.saved_state).to eq(:saved) end end it 'should start as saved after create' do item = the_page._items.create({name: 'One'}) expect(item.saved_state).to eq(:saved) end # TODO: because server side model loading is done synchronusly, we can't # test the end end
Version data entries
24 entries across 24 versions & 1 rubygems