require 'test_helper' class MessageRoutesControllerTest < ActionController::TestCase setup do @message_route = message_routes(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:message_routes) end test "should get new" do get :new assert_response :success end test "should create message_route" do assert_difference('MessageRoute.count') do post :create, message_route: @message_route.attributes end assert_redirected_to message_route_path(assigns(:message_route)) end test "should show message_route" do get :show, id: @message_route assert_response :success end test "should get edit" do get :edit, id: @message_route assert_response :success end test "should update message_route" do put :update, id: @message_route, message_route: @message_route.attributes assert_redirected_to message_route_path(assigns(:message_route)) end test "should destroy message_route" do assert_difference('MessageRoute.count', -1) do delete :destroy, id: @message_route end assert_redirected_to message_routes_path end end