Sha256: 60c77f90bd700cecdb66f12256de6d64758cc1b983bcd7d2d88465d0076071a0

Contents?: true

Size: 1.07 KB

Versions: 21

Compression:

Stored size: 1.07 KB

Contents

require 'test_helper'

module Ems
  class ReportsControllerTest < ActionController::TestCase
    setup do
      @report = reports(:one)
    end
  
    test "should get index" do
      get :index
      assert_response :success
      assert_not_nil assigns(:reports)
    end
  
    test "should get new" do
      get :new
      assert_response :success
    end
  
    test "should create report" do
      assert_difference('Report.count') do
        post :create, report: {  }
      end
  
      assert_redirected_to report_path(assigns(:report))
    end
  
    test "should show report" do
      get :show, id: @report
      assert_response :success
    end
  
    test "should get edit" do
      get :edit, id: @report
      assert_response :success
    end
  
    test "should update report" do
      put :update, id: @report, report: {  }
      assert_redirected_to report_path(assigns(:report))
    end
  
    test "should destroy report" do
      assert_difference('Report.count', -1) do
        delete :destroy, id: @report
      end
  
      assert_redirected_to reports_path
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ems-0.1.12 test/functional/ems/reports_controller_test.rb
ems-0.1.11 test/functional/ems/reports_controller_test.rb
ems-0.1.10 test/functional/ems/reports_controller_test.rb
ems-0.1.9 test/functional/ems/reports_controller_test.rb
ems-0.1.8 test/functional/ems/reports_controller_test.rb
ems-0.1.7 test/functional/ems/reports_controller_test.rb
ems-0.1.6 test/functional/ems/reports_controller_test.rb
ems-0.1.5 test/functional/ems/reports_controller_test.rb
ems-0.1.4 test/functional/ems/reports_controller_test.rb
ems-0.1.3 test/functional/ems/reports_controller_test.rb
ems-0.1.2 test/functional/ems/reports_controller_test.rb
ems-0.1.1 test/functional/ems/reports_controller_test.rb
ems-0.1.0 test/functional/ems/reports_controller_test.rb
ems-0.0.9 test/functional/ems/reports_controller_test.rb
ems-0.0.8 test/functional/ems/reports_controller_test.rb
ems-0.0.7 test/functional/ems/reports_controller_test.rb
ems-0.0.6 test/functional/ems/reports_controller_test.rb
ems-0.0.5 test/functional/ems/reports_controller_test.rb
ems-0.0.4 test/functional/ems/reports_controller_test.rb
ems-0.0.3 test/functional/ems/reports_controller_test.rb