Commit c51cf308d23dec767b5b8a4a7d68bda94bb978a6

Authored by Rodrigo Souto
1 parent 07cba6cc

[postgres-tests] Fixing acts_as_filesystem tests

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
test/unit/acts_as_filesystem_test.rb
@@ -80,7 +80,11 @@ class ActsAsFilesystemTest < ActiveSupport::TestCase @@ -80,7 +80,11 @@ class ActsAsFilesystemTest < ActiveSupport::TestCase
80 article2 = Article.create!(:name => 'article 2', :profile => profile, :parent => folder) 80 article2 = Article.create!(:name => 'article 2', :profile => profile, :parent => folder)
81 folder.reload 81 folder.reload
82 82
83 - assert_equal [folder, article1, article2], folder.map_traversal 83 + items = folder.map_traversal
  84 +
  85 + assert_includes items, folder
  86 + assert_includes items, article1
  87 + assert_includes items, article2
84 end 88 end
85 89
86 should 'allow dots in slug' do 90 should 'allow dots in slug' do