Permalink
Browse files

Spec showing that search is narrowed by date.

  • Loading branch information...
1 parent 5ae7601 commit d44b02fb7097227e3836d4b6f62487addad8f92a @marano committed May 3, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/rollin_spec.rb
View
@@ -59,6 +59,11 @@
blog.articles(year: 2013, month: 5).should include(first_article, second_article)
blog.articles(year: 2013, month: 5, day: 1).should include(first_article)
end
+
+ it 'narrows search by date when searching for metatags' do
+ blog.articles(year: 2013, :tags => 'manero').should { article_with_custom_metatags }
+ blog.articles(year: 2014, :tags => 'manero').should be_empty
+ end
end
context 'listing articles' do

0 comments on commit d44b02f

Please sign in to comment.