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

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