Sha256: ec5cf905fdd7641c1f901a90e7b0029f9c2b16ac0a659ac314d94037fe282239
Contents?: true
Size: 1.19 KB
Versions: 20
Compression:
Stored size: 1.19 KB
Contents
require 'test_helper' class PublickeysControllerTest < ActionDispatch::IntegrationTest setup do @publickey = publickeys(:one) end test "should get index" do get publickeys_url assert_response :success end test "should get new" do get new_publickey_url assert_response :success end test "should create publickey" do assert_difference('Publickey.count') do post publickeys_url, params: { publickey: { data: @publickey.data, name: @publickey.name, user_id: @publickey.user_id } } end assert_redirected_to publickey_url(Publickey.last) end test "should show publickey" do get publickey_url(@publickey) assert_response :success end test "should get edit" do get edit_publickey_url(@publickey) assert_response :success end test "should update publickey" do patch publickey_url(@publickey), params: { publickey: { data: @publickey.data, name: @publickey.name, user_id: @publickey.user_id } } assert_redirected_to publickey_url(@publickey) end test "should destroy publickey" do assert_difference('Publickey.count', -1) do delete publickey_url(@publickey) end assert_redirected_to publickeys_url end end
Version data entries
20 entries across 20 versions & 1 rubygems