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

Version Path
meroku-2.0.22 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.21 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.20 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.19 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.18 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.17 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.16 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.14 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.13 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.11 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.10 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.9 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.8 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.7 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.6 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.5 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.4 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.3 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.2 frontend/test/controllers/publickeys_controller_test.rb
meroku-2.0.1 frontend/test/controllers/publickeys_controller_test.rb