spec/lib/indexed/wrappers/exact_first_spec.rb in picky-0.12.3 vs spec/lib/indexed/wrappers/exact_first_spec.rb in picky-1.0.0
- old
+ new
@@ -14,18 +14,18 @@
context "type" do
# FIXME
#
# it "wraps each category" do
# type = Index::Type.new :type_name
- # type.add_category :some_category
+ # type.define_category :some_category
#
# Index::Wrappers::ExactFirst.wrap type
#
# type.categories.should be_kind_of(Index::Wrappers::ExactFirst)
# end
it "returns the type" do
type = Indexed::Index.new :type_name
- type.add_category :some_category
+ type.define_category :some_category
Indexed::Wrappers::ExactFirst.wrap(type).should == type
end
end
context "category" do
\ No newline at end of file