spec/lib/id_spec.rb in id-0.0.1 vs spec/lib/id_spec.rb in id-0.0.2

- old
+ new

@@ -72,30 +72,5 @@ model.nested_models.last.yak.should eq 14 end end end -describe Id::Model::HasOne do - - module Foo - module Bar - module Baz - class Quux - end - end - end - end - - let (:model) { stub(name: "Foo::Bar::Baz::Quux") } - let (:has_one) { Id::Model::HasOne.new(model, "yak", {}) } - - describe "hierarchy" do - it "builds the class and module hierarchy for the model" do - has_one.hierarchy.constants.should eq [ - Foo::Bar::Baz::Quux, - Foo::Bar::Baz, - Foo::Bar, - Foo - ] - end - end -end