Sha256: d5edfbc9f0a14ca54dc9e2934ece16f60a9112e764cf7aefc04b698e9d8c34a5

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 KB

Contents

require 'test_helper'

class ProjectsControllerTest < ActionController::TestCase
=begin
  setup do
    @project = projects(:one)
  end

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

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

  test "should create project" do
    assert_difference('Project.count') do
      post :create, project: @project.attributes
    end

    assert_redirected_to project_path(assigns(:project))
  end

  test "should show project" do
    get :show, id: @project.to_param
    assert_response :success
  end

  test "should get edit" do
    get :edit, id: @project.to_param
    assert_response :success
  end

  test "should update project" do
    put :update, id: @project.to_param, project: @project.attributes
    assert_redirected_to project_path(assigns(:project))
  end

  test "should destroy project" do
    assert_difference('Project.count', -1) do
      delete :destroy, id: @project.to_param
    end

    assert_redirected_to projects_path
  end

=end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
extr-1.0.6 test/dummy/test/functional/projects_controller_test.rb
extr-1.0.5 test/dummy/test/functional/projects_controller_test.rb
extr-1.0.4 test/dummy/test/functional/projects_controller_test.rb
extr-1.0.3 test/dummy/test/functional/projects_controller_test.rb
extr-1.0.2 test/dummy/test/functional/projects_controller_test.rb
extr-1.0.1 test/dummy/test/functional/projects_controller_test.rb
extr-1.0.0 test/dummy/test/functional/projects_controller_test.rb