Skip to content

Commit

Permalink
fixed intermittent failure of hashtag_search
Browse files Browse the repository at this point in the history
  • Loading branch information
Kat Hagan committed Mar 31, 2011
1 parent e190d68 commit 15de08f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def test_tags_are_extracted
def test_hashtag_search
u1 = Update.create(:text => "this has #lots #of #hash #tags")
u2 = Update.create(:text => "this has #lots #of #hash #tags #also")
assert_equal Update.hashtag_search("lots", {:page => 1, :per_page => 2}), [u1, u2]
search_results = Update.hashtag_search("lots", {:page => 1, :per_page => 2}).map do |update|
update.id.to_s
end
assert_equal search_results.sort(), [u1.id.to_s, u2.id.to_s].sort()
end

def test_tweeted_flag_default
Expand Down

0 comments on commit 15de08f

Please sign in to comment.