Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test for find_tagged with using :include and :order.

  • Loading branch information...
commit e45c1eece0af5bd1fea7dd0c155b598eea6fad92 1 parent 0462f7e
Jonathan Viney authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/acts_as_taggable_test.rb
View
4 test/acts_as_taggable_test.rb
@@ -10,6 +10,10 @@ def test_find_related_tags_with
assert_equivalent [tags(:bad), tags(:question)], Post.find_related_tags([tags(:good), tags(:nature)])
end
+ def test_find_tagged_with_include_and_order
+ assert_equal photos(:sam_sky, :sam_flower, :jonathan_dog), Photo.find_tagged_with("Nature", :order => "photos.title DESC", :include => :user)
+ end
+
def test_find_related_tags_with_non_existent_tags
assert_equal [], Post.find_related_tags("ABCDEFG")
assert_equal [], Post.find_related_tags(['HIJKLM'])
Please sign in to comment.
Something went wrong with that request. Please try again.