spec/toy/inheritance_spec.rb in toystore-0.13.0 vs spec/toy/inheritance_spec.rb in toystore-0.13.1
- old
+ new
@@ -34,14 +34,10 @@
end
it "sets type to class name" do
Child.new.type.should eq('Child')
end
-
- it "sets the key factory to same as parent" do
- Child.key_factory.should eq(Parent.key_factory)
- end
end
describe 'using Toy::Store' do
before do
class ::Degree
@@ -86,8 +82,12 @@
Parent.references.keys.should_not include(:odd_degree)
end
it "sets the adapter to the same as the parent" do
Child.adapter.should eq(Parent.adapter)
+ end
+
+ it "sets the key factory to same as parent" do
+ Child.key_factory.should eq(Parent.key_factory)
end
end
end