Sha256: 8cea6b502de97dae0daa7b90194206b8e3d081a71eefcbbade3df1c26cc889a3
Contents?: true
Size: 940 Bytes
Versions: 20
Compression:
Stored size: 940 Bytes
Contents
require 'test_helper' class AppsControllerTest < ActionDispatch::IntegrationTest setup do @app = apps(:one) end test "should get index" do get apps_url assert_response :success end test "should get new" do get new_app_url assert_response :success end test "should create app" do assert_difference('App.count') do post apps_url, params: { app: { name: @app.name } } end assert_redirected_to app_url(App.last) end test "should show app" do get app_url(@app) assert_response :success end test "should get edit" do get edit_app_url(@app) assert_response :success end test "should update app" do patch app_url(@app), params: { app: { name: @app.name } } assert_redirected_to app_url(@app) end test "should destroy app" do assert_difference('App.count', -1) do delete app_url(@app) end assert_redirected_to apps_url end end
Version data entries
20 entries across 20 versions & 1 rubygems