You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nested_singleton_test.rb
    path of file: ./repos/inherited_resources/test
    
    the code of the file until where you have to start completion: require 'test_helper'

# This test file is instead to test the how controller flow and actions
# using a belongs_
    
  def test_the_requested_manager_is_destroyed_on_destroy
    Party.expects(:find).with('37').returns(mock_party)
    mock_party.expects(:venue).returns(mock_venue)
    mock_venue.expects(:address).returns(mock_address)
    @controller.expects(:parent_url).returns('http://test.host/')
    mock_address.expects(:destroy)
    delete :destroy, params: { party_id: '37' }

    assert_equal mock_party, assigns(:party)
    assert_equal mock_venue, assigns(:venue)
    assert_equal mock_address, assigns(:address)
  end