Sha256: 799269ad4d306b5a2c9bf4490f00851d11695fb4e593408316ec882490eeb446
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'test_helper' class ClientsControllerTest < ActionController::TestCase setup do @client = clients(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:clients) end test "should get new" do get :new assert_response :success end test "should create client" do assert_difference('Client.count') do post :create, client: { } end assert_redirected_to client_path(assigns(:client)) end test "should show client" do get :show, id: @client assert_response :success end test "should get edit" do get :edit, id: @client assert_response :success end test "should update client" do patch :update, id: @client, client: { } assert_redirected_to client_path(assigns(:client)) end test "should destroy client" do assert_difference('Client.count', -1) do delete :destroy, id: @client end assert_redirected_to clients_path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap3_autocomplete_input-0.2.3 | test/dummy/test/controllers/clients_controller_test.rb |
bootstrap3_autocomplete_input-0.2.1 | test/dummy/test/controllers/clients_controller_test.rb |