fix small typo in search_spec

This commit is contained in:
Jason Kriss 2013-05-21 05:56:04 -03:00
parent b5eff93a9d
commit c22435562d

View file

@ -224,7 +224,7 @@ describe Search do
context 'category filter' do context 'category filter' do
let(:results) { Search.query('amazing', nil, 'category') } let(:results) { Search.query('amazing', nil, 'category') }
it "returns a user result" do it "returns a category result" do
results.detect {|r| r[:type] == 'user'}.should be_blank results.detect {|r| r[:type] == 'user'}.should be_blank
results.detect {|r| r[:type] == 'category'}.should be_present results.detect {|r| r[:type] == 'category'}.should be_present
end end