require 'helper' describe Toy::Identity::AbstractKeyFactory do it "should raise not implemented for #key_type" do lambda { Toy::Identity::AbstractKeyFactory.new.key_type }.should raise_error(NotImplementedError) end it "should raise not implemented error for #next_key" do lambda { Toy::Identity::AbstractKeyFactory.new.next_key("any object") }.should raise_error(NotImplementedError) end end