spec/formatter_spec.rb in cistern-0.11.1 vs spec/formatter_spec.rb in cistern-0.11.2.pre2
- old
+ new
@@ -1,14 +1,13 @@
require 'spec_helper'
describe "#inspect" do
- class Inspector < Cistern::Model
+ class Inspector < Sample::Model
identity :id
attribute :name
end
- class Inspectors < Cistern::Collection
-
+ class Inspectors < Sample::Collection
model Inspector
def all(options={})
merge_attributes(options)
self.load([{id: 1, name: "2"},{id: 3, name: "4"}])