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.0.2 | test/functional/ems/reports_controller_test.rb |