Main Avalanche Network server application. Built with Ruby on Rails.

mission_agents_controller_test.rb 1.1KB

    require 'test_helper' class MissionAgentsControllerTest < ActionController::TestCase setup do @mission_agent = mission_agents(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:mission_agents) end test "should get new" do get :new assert_response :success end test "should create mission_agent" do assert_difference('MissionAgent.count') do post :create, mission_agent: { } end assert_redirected_to mission_agent_path(assigns(:mission_agent)) end test "should show mission_agent" do get :show, id: @mission_agent assert_response :success end test "should get edit" do get :edit, id: @mission_agent assert_response :success end test "should update mission_agent" do patch :update, id: @mission_agent, mission_agent: { } assert_redirected_to mission_agent_path(assigns(:mission_agent)) end test "should destroy mission_agent" do assert_difference('MissionAgent.count', -1) do delete :destroy, id: @mission_agent end assert_redirected_to mission_agents_path end end