Sha256: 2cf922c6a84da8b17b080960179e83035e6f66317cf05dafd98b71ba2f55bcbe
Contents?: true
Size: 981 Bytes
Versions: 5
Compression:
Stored size: 981 Bytes
Contents
require 'test_helper' class TypesControllerTest < ActionDispatch::IntegrationTest setup do @type = types(:one) end test "should get index" do get types_url assert_response :success end test "should get new" do get new_type_url assert_response :success end test "should create type" do assert_difference('Type.count') do post types_url, params: { type: { code_id: @type.code_id } } end assert_redirected_to type_url(Type.last) end test "should show type" do get type_url(@type) assert_response :success end test "should get edit" do get edit_type_url(@type) assert_response :success end test "should update type" do patch type_url(@type), params: { type: { code_id: @type.code_id } } assert_redirected_to type_url(@type) end test "should destroy type" do assert_difference('Type.count', -1) do delete type_url(@type) end assert_redirected_to types_url end end
Version data entries
5 entries across 5 versions & 2 rubygems