
https://svn.lrde.epita.fr/svn/ranch/trunk Index: ChangeLog from Nicolas Despr�s <nicolas.despres@gmail.com> Fix a test. * web/ranch/test/functional/benches_controller_test.rb: Load fixtures and fix a bad assertion. benches_controller_test.rb | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) Index: web/ranch/test/functional/benches_controller_test.rb --- web/ranch/test/functional/benches_controller_test.rb (revision 62) +++ web/ranch/test/functional/benches_controller_test.rb (working copy) @@ -5,7 +5,7 @@ class BenchesController; def rescue_action(e) raise e end; end class BenchesControllerTest < Test::Unit::TestCase - fixtures :projects, :benches, :outputs, :inputs + fixtures :projects, :benches, :outputs, :inputs, :systems def setup @controller = BenchesController.new @@ -141,7 +141,7 @@ end def test_systems_list_is_grouped_by_hostname - get :regression, { :bench_id => 2 } + post :regression, { :bench_id => 2 } assert_response :success assert_template 'regression' @@ -149,8 +149,7 @@ assert_not_nil assigns(:bench) assert_not_nil assigns(:output_arg_num) assert_not_nil assigns(:inputs) - assert_not_nil assigns(:systems) - assert 2, assigns(:systems).size + assert_equal 1, assigns(:systems).size end end