Permalink
Browse files

Fix bug when searching for article that does not exist.

  • Loading branch information...
1 parent 7235be2 commit 3a1491660b892b0d9c6b488c351a7ec3bacc76b3 @marano committed May 7, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/rollin/article.rb
  2. +1 −0 spec/rollin_spec.rb
@@ -17,7 +17,7 @@ def title
def matches?(search)
return true if @id == search
- return false if @searh.is_a? String
+ return false if search.is_a? String
search = search.clone
View
@@ -48,6 +48,7 @@
context 'searching for articles' do
it 'searches by article id' do
blog.article('2013_05_01_My_first_post').should == first_article
+ blog.article('this_article_does_not_exist').should be_nil
end
it 'searches by metatags' do

0 comments on commit 3a14916

Please sign in to comment.