From 5495f169f29f4eb498b1edcc2dc1c3e4cc99e769 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Mon, 17 May 2010 13:56:29 -0400 Subject: [PATCH] Usage of assert instead of assert_equal is masking test [#4627 state:resolved] --- actionpack/test/controller/resources_test.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index a9d1c55..ec39adb 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -126,7 +126,8 @@ class ResourcesTest < ActionController::TestCase def test_with_custom_conditions with_restful_routing :messages, :conditions => { :subdomain => 'app' } do - assert @routes.recognize_path("/messages", :method => :get, :subdomain => 'app') + expected = {:action => 'index', :controller => 'messages'} + assert_equal expected , @routes.recognize_path("/messages", :method => :get, :subdomain => 'app') end end -- 1.6.5.2