title: Square Brackets on Assert Parameters in Rails
body: <p>I have this test:</p>
  
  <pre><code>def test_should_only_list_promoted_on_index
      get :index
      assert_equal stories(:promoted), assigns(:stories)
    end
  </code></pre>
  
  <p>which fails with the message:</p>
  
  <pre><code>&lt;#&lt;Story id: 3, name: "What is a Debugger?", link: "http://en.wikipedia.org/wiki/Debugger", created_at: "2011-03-25 20:57:04", updated_at: "2011-03-25 20:57:04", user_id: 2, votes_count: 5, description: nil&gt;&gt; expected but was
  &lt;[#&lt;Story id: 3, name: "What is a Debugger?", link: "http://en.wikipedia.org/wiki/Debugger", created_at: "2011-03-25 20:57:04", updated_at: "2011-03-25 20:57:04", user_id: 2, votes_count: 5, description: nil&gt;]&gt;.
  </code></pre>
  
  <p>however if I put square braces around the "stories(:promoted)" param</p>
  
  <pre><code>def test_should_only_list_promoted_on_index
      get :index
      assert_equal [stories(:promoted)], assigns(:stories)
    end
  </code></pre>
  
  <p>the test succeeds. Why is this?</p>
  
  <p>I am using Rails 2.3.9 and Ruby 1.9.2</p>