title: Comparing 2 arrays for content equality
body: <p>I want to compare two arrays, but <code>assert_equal</code> raises an error:</p>
  
  <pre><code>No visible difference in the Array#inspect output.
  You should look at the implementation of #== on Array or its members.
  </code></pre>
  
  <p>Here is my test:</p>
  
  <pre><code>describe Post do
      before do
          @draft = Post.new('test-draft', draft = true)
          @post = Post.new('2014-10-31-test-post')
      end
  
      describe '.drafts' do
          it 'returns an array of unpublished posts' do
              actual = Post.drafts           
              assert_equal [@draft], actual
          end
      end
  end
  </code></pre>
  
  <p>Here are my two arrays, they are identical in content, but have different memory locations. </p>
  
  <pre><code>[
      [0] #&lt;Post:0x0000000851a178 @file_name="test-draft", @draft=true&gt;
  ]
  [
      [0] #&lt;Post:0x0000000851a538 @file_name="test-draft", @draft=true&gt;
  ]
  </code></pre>
  
  <p>How can I compare my two arrays?</p>