title: What does this mean? *** "Delete" argument ":destroy," needs to be a number (Rails)
body: <p>I'm trying to run the following tests for destroying a model object.</p>
  
  <p>Here is one of the tests:</p>
  
  <pre><code>  it 'admin destroy' do
      login_as(admin)
      assert_difference('Topic.count', -1) do
        debugger;
        delete :destroy, id: topic.id
      end
      must_redirect_to forums_path
    end
  </code></pre>
  
  <p>This test fails to destroy a Topic model object. Placing a debugger; in the cod produces this;</p>
  
  <p><img src="https://i.stack.imgur.com/Cuh7P.png" alt="enter image description here"></p>
  
  <p>What is this <code>'Delete argument destroy needs to be a number?'</code></p>
  
  <p>My forums destroy test works perfectly. I don't understand what the problem is. Does anyone know what this means. I placed the exact error on Google but it leads to a bunch of links with destroy argument error problems. Help would be appreciated, Thanks.</p>
  
  <p>---------EDIT---------</p>
  
  <p>*At the top of my controller_test file I have let <code>let(:topic) { create(:topic) }</code> from FactoryGirl if anyone was wondering.</p>