From c51cf308d23dec767b5b8a4a7d68bda94bb978a6 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 13 Aug 2013 17:13:48 -0300 Subject: [PATCH] [postgres-tests] Fixing acts_as_filesystem tests --- test/unit/acts_as_filesystem_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/acts_as_filesystem_test.rb b/test/unit/acts_as_filesystem_test.rb index ffd3f4c..bdbc5bc 100644 --- a/test/unit/acts_as_filesystem_test.rb +++ b/test/unit/acts_as_filesystem_test.rb @@ -80,7 +80,11 @@ class ActsAsFilesystemTest < ActiveSupport::TestCase article2 = Article.create!(:name => 'article 2', :profile => profile, :parent => folder) folder.reload - assert_equal [folder, article1, article2], folder.map_traversal + items = folder.map_traversal + + assert_includes items, folder + assert_includes items, article1 + assert_includes items, article2 end should 'allow dots in slug' do -- libgit2 0.21.2