Ruby on rails &引用;ActionController::RoutingError:没有路由匹配;单元测试中的错误

Ruby on rails &引用;ActionController::RoutingError:没有路由匹配;单元测试中的错误,ruby-on-rails,ruby,unit-testing,teamcity,rake-test,Ruby On Rails,Ruby,Unit Testing,Teamcity,Rake Test,我正在持续集成服务器上运行单元集成测试。我得到了其中3个相同格式的错误,这里是测试“PaymentMethodsControllerTest.test\u应该更新\u活动\u字段”的示例: ActionController::RoutingError:没有与之匹配的路由{:id=>“380742408”,:active=>false,:controller=>“付款方法”,:action=>“更新\活动”} 堆栈跟踪: 测试/功能/支付方法\u控制器\u测试。rb:61:in'block in'

我正在持续集成服务器上运行单元集成测试。我得到了其中3个相同格式的错误,这里是测试“PaymentMethodsControllerTest.test\u应该更新\u活动\u字段”的示例:

ActionController::RoutingError:没有与之匹配的路由{:id=>“380742408”,:active=>false,:controller=>“付款方法”,:action=>“更新\活动”}
堆栈跟踪:
测试/功能/支付方法\u控制器\u测试。rb:61:in'block in'
其他是: ProductsControllerTest.test\u应\u更新\u活动\u字段:

ActionController::RoutingError: No route matches {:id=>"380742408", :active=>false, :controller=>"payment_methods", :action=>"update_active"}

Stack trace:
test/functional/payment_methods_controller_test.rb:61:in `block in <class:PaymentMethodsControllerTest>'
ActionController::RoutingError: No route matches {:id=>"9854742", :active=>false, :controller=>"products", :action=>"update_status"}

Stack trace:
test/functional/products_controller_test.rb:61:in `block in <class:ProductsControllerTest>'
ActionController::RoutingError: No route matches {:id=>"260276858", :active=>false, :controller=>"sections", :action=>"update_status"}

Stack trace:
test/functional/sections_controller_test.rb:54:in `block in <class:SectionsControllerTest>'
ActionController::RoutingError:没有与之匹配的路由{:id=>“9854742”,:active=>false,:controller=>“products”,:action=>“update_status”}
堆栈跟踪:
测试/功能/产品\u控制器\u测试。rb:61:in‘block in’
SectionsControllerTest.test\u应\u更新\u活动\u字段:

ActionController::RoutingError: No route matches {:id=>"380742408", :active=>false, :controller=>"payment_methods", :action=>"update_active"}

Stack trace:
test/functional/payment_methods_controller_test.rb:61:in `block in <class:PaymentMethodsControllerTest>'
ActionController::RoutingError: No route matches {:id=>"9854742", :active=>false, :controller=>"products", :action=>"update_status"}

Stack trace:
test/functional/products_controller_test.rb:61:in `block in <class:ProductsControllerTest>'
ActionController::RoutingError: No route matches {:id=>"260276858", :active=>false, :controller=>"sections", :action=>"update_status"}

Stack trace:
test/functional/sections_controller_test.rb:54:in `block in <class:SectionsControllerTest>'
ActionController::RoutingError:没有与之匹配的路由{:id=>“260276858”,:active=>false,:controller=>“sections”,:action=>“update_status”}
堆栈跟踪:
测试/功能/部分\u控制器\u测试。rb:54:in‘block in’

开发人员声称他们的测试在他们的环境中运行正常,但不是我。我使用的是ruby 1.9.2p320,Rails 3.2.0

您和您的开发人员使用的是相同的gems吗?i、 他们是否也在使用Rails 3.2?他们使用的是相同的gems和相同版本的Rails。不管他们已经修复了那些测试。