summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-10 23:51:03 +0100
committerhukl <contact@smyck.org>2009-03-10 23:51:03 +0100
commitc9fa047402fdc009319dca7b05455e8ce73eaee7 (patch)
tree232bcb793cb187a50ec38343f8f93a3901492c2f /test/functional
parentd987886a9a94c6bad53ff7c7a241b85ea0b57de7 (diff)
remove event resource temporarily until its finalized
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/events_controller_test.rb45
1 files changed, 0 insertions, 45 deletions
diff --git a/test/functional/events_controller_test.rb b/test/functional/events_controller_test.rb
deleted file mode 100644
index 24a6f94..0000000
--- a/test/functional/events_controller_test.rb
+++ /dev/null
@@ -1,45 +0,0 @@
1require 'test_helper'
2
3class EventsControllerTest < ActionController::TestCase
4 test "should get index" do
5 get :index
6 assert_response :success
7 assert_not_nil assigns(:events)
8 end
9
10 test "should get new" do
11 get :new
12 assert_response :success
13 end
14
15 test "should create event" do
16 assert_difference('Event.count') do
17 post :create, :event => { }
18 end
19
20 assert_redirected_to event_path(assigns(:event))
21 end
22
23 test "should show event" do
24 get :show, :id => events(:one).id
25 assert_response :success
26 end
27
28 test "should get edit" do
29 get :edit, :id => events(:one).id
30 assert_response :success
31 end
32
33 test "should update event" do
34 put :update, :id => events(:one).id, :event => { }
35 assert_redirected_to event_path(assigns(:event))
36 end
37
38 test "should destroy event" do
39 assert_difference('Event.count', -1) do
40 delete :destroy, :id => events(:one).id
41 end
42
43 assert_redirected_to events_path
44 end
45end