From cc6f98b12023b8d3961a55d6a3afe92525a8954d Mon Sep 17 00:00:00 2001 From: davidsulc Date: Sun, 27 Feb 2011 01:38:58 -0500 Subject: [PATCH] change test to specifically test intended behavior --- test/functional/sugar_beans_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/sugar_beans_controller_test.rb b/test/functional/sugar_beans_controller_test.rb index c0018f6..a8347fc 100644 --- a/test/functional/sugar_beans_controller_test.rb +++ b/test/functional/sugar_beans_controller_test.rb @@ -20,9 +20,9 @@ class SugarBeansControllerTest < ActionController::TestCase assert_response :success end - test "should display available modules" do + test "should render available modules on invalid module param" do get(:list, {:module => "kittens"}) - assert_response :success + assert_template 'available_modules' end end