Sha256: 3957005afb298cbd7aa1631317de727772a4c67a7c667d1f714133d846d43e2e

Contents?: true

Size: 1010 Bytes

Versions: 4

Compression:

Stored size: 1010 Bytes

Contents

require 'test_helper'

class FrontsControllerTest < ActionController::TestCase
  setup do
    @front = fronts(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:fronts)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create front" do
    assert_difference('Front.count') do
      post :create, front: { index: @front.index }
    end

    assert_redirected_to front_path(assigns(:front))
  end

  test "should show front" do
    get :show, id: @front
    assert_response :success
  end

  test "should get edit" do
    get :edit, id: @front
    assert_response :success
  end

  test "should update front" do
    patch :update, id: @front, front: { index: @front.index }
    assert_redirected_to front_path(assigns(:front))
  end

  test "should destroy front" do
    assert_difference('Front.count', -1) do
      delete :destroy, id: @front
    end

    assert_redirected_to fronts_path
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keppler-2.0.3 installer/core/test/controllers/fronts_controller_test.rb
keppler-2.0.2 installer/core/test/controllers/fronts_controller_test.rb
keppler-2.0.1 installer/core/test/controllers/fronts_controller_test.rb
keppler-2.0.0 installer/core/test/controllers/fronts_controller_test.rb