Skip to content

Commit

Permalink
Spec showing that search is narrowed by date.
Browse files Browse the repository at this point in the history
  • Loading branch information
marano committed May 3, 2013
1 parent 5ae7601 commit d44b02f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/rollin_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
blog.articles(year: 2013, month: 5).should include(first_article, second_article) blog.articles(year: 2013, month: 5).should include(first_article, second_article)
blog.articles(year: 2013, month: 5, day: 1).should include(first_article) blog.articles(year: 2013, month: 5, day: 1).should include(first_article)
end 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 end


context 'listing articles' do context 'listing articles' do
Expand Down

0 comments on commit d44b02f

Please sign in to comment.