require 'test_helper'

class RestLabReportsControllerTest < ActionController::TestCase
  setup do
    @rest_lab_report = rest_lab_reports(:one)
  end

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

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

  test "should create rest_lab_report" do
    assert_difference('RestLabReport.count') do
      post :create, rest_lab_report: {  }
    end

    assert_redirected_to rest_lab_report_path(assigns(:rest_lab_report))
  end

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

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

  test "should update rest_lab_report" do
    patch :update, id: @rest_lab_report, rest_lab_report: {  }
    assert_redirected_to rest_lab_report_path(assigns(:rest_lab_report))
  end

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

    assert_redirected_to rest_lab_reports_path
  end
end
