spec/collection_spec.rb in cistern-0.11.1 vs spec/collection_spec.rb in cistern-0.11.2.pre2
- old
+ new
@@ -1,14 +1,13 @@
require 'spec_helper'
describe "Cistern::Collection" do
-
- class SampleCollectionModel < Cistern::Model
+ class SampleCollectionModel < Sample::Model
identity :id
attribute :name
end
- class SampleCollection < Cistern::Collection
+ class SampleCollection < Sample::Collection
model SampleCollectionModel
def all
self.load([{id: 1}, {id: 3, name: "tom"}, {id: 2}])
end