spec/model/introspection_spec.rb in her-0.5.3 vs spec/model/introspection_spec.rb in her-0.5.4

- old
+ new

@@ -37,23 +37,23 @@ @user.inspect.should_not include("password=\"Funke\"") end end end - describe "#nearby_class" do + describe "#her_nearby_class" do context "for a class inside of a module" do before do spawn_model "Foo::User" spawn_model "Foo::AccessRecord" spawn_model "AccessRecord" spawn_model "Log" end it "returns a sibling class, if found" do - Foo::User.nearby_class("AccessRecord").should == Foo::AccessRecord - AccessRecord.nearby_class("Log").should == Log - Foo::User.nearby_class("Log").should == Log - Foo::User.nearby_class("X").should be_nil + Foo::User.her_nearby_class("AccessRecord").should == Foo::AccessRecord + AccessRecord.her_nearby_class("Log").should == Log + Foo::User.her_nearby_class("Log").should == Log + Foo::User.her_nearby_class("X").should be_nil end end end end