  def test_update_valid
    Medium.any_instance.stubs(:valid?).returns(true)
    put :update, {:id => @model, :medium => {:name => "MyUpdatedMedia"}}, set_session_user
    assert_redirected_to media_url
  end
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.