spec/collection_spec.rb in cistern-0.11.2.pre2 vs spec/collection_spec.rb in cistern-0.11.2

- old
+ new

@@ -1,13 +1,14 @@ require 'spec_helper' describe "Cistern::Collection" do - class SampleCollectionModel < Sample::Model + + class SampleCollectionModel < Cistern::Model identity :id attribute :name end - class SampleCollection < Sample::Collection + class SampleCollection < Cistern::Collection model SampleCollectionModel def all self.load([{id: 1}, {id: 3, name: "tom"}, {id: 2}]) end