spec/lib/indexed/wrappers/exact_first_spec.rb in picky-3.3.1 vs spec/lib/indexed/wrappers/exact_first_spec.rb in picky-3.3.2

- old
+ new

@@ -1,8 +1,8 @@ require 'spec_helper' -describe Picky::Wrappers::ExactFirst do +describe Picky::Wrappers::Category::ExactFirst do before(:each) do @exact = stub :exact @partial = stub :partial @category = stub :category, :exact => @exact, :partial => @partial @@ -14,13 +14,13 @@ context "index" do it "wraps each category" do index = Picky::Index.new :some_index index.define_category :some_category - Picky::Wrappers::ExactFirst.wrap index + described_class.wrap index index.categories.categories.each do |category| - category.should be_kind_of(Picky::Wrappers::ExactFirst) + category.should be_kind_of(described_class) end end it "returns the index" do index = Picky::Index.new :some_index index.define_category :some_category \ No newline at end of file