summaryrefslogtreecommitdiff
path: root/test/functional/events_controller_test.rb
blob: 5698c7ba8bafa2ba5a776640673e7de99dde96ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'test_helper'

class EventsControllerTest < ActionController::TestCase
  # test "should get index" do
  #   get :index
  #   assert_response :success
  #   assert_not_nil assigns(:events)
  # end
  # 
  # test "should get new" do
  #   get :new
  #   assert_response :success
  # end
  # 
  # test "should create event" do
  #   assert_difference('Event.count') do
  #     post :create, :event => { }
  #   end
  # 
  #   assert_redirected_to event_path(assigns(:event))
  # end
  # 
  # test "should show event" do
  #   get :show, :id => events(:one).to_param
  #   assert_response :success
  # end
  # 
  # test "should get edit" do
  #   get :edit, :id => events(:one).to_param
  #   assert_response :success
  # end
  # 
  # test "should update event" do
  #   put :update, :id => events(:one).to_param, :event => { }
  #   assert_redirected_to event_path(assigns(:event))
  # end
  # 
  # test "should destroy event" do
  #   assert_difference('Event.count', -1) do
  #     delete :destroy, :id => events(:one).to_param
  #   end
  # 
  #   assert_redirected_to events_path
  # end
end