summaryrefslogtreecommitdiff
path: root/test/functional/addresses_controller_test.rb
blob: b1f5c837ebb5834376d3678bf56d374b581231f3 (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
46
47
48
49
require 'test_helper'

class AddressesControllerTest < ActionController::TestCase
#   setup do
#     @address = addresses(:one)
#   end
# 
#   test "should get index" do
#     get :index
#     assert_response :success
#     assert_not_nil assigns(:addresses)
#   end
# 
#   test "should get new" do
#     get :new
#     assert_response :success
#   end
# 
#   test "should create address" do
#     assert_difference('Address.count') do
#       post :create, address: @address.attributes
#     end
# 
#     assert_redirected_to address_path(assigns(:address))
#   end
# 
#   test "should show address" do
#     get :show, id: @address.to_param
#     assert_response :success
#   end
# 
#   test "should get edit" do
#     get :edit, id: @address.to_param
#     assert_response :success
#   end
# 
#   test "should update address" do
#     put :update, id: @address.to_param, address: @address.attributes
#     assert_redirected_to address_path(assigns(:address))
#   end
# 
#   test "should destroy address" do
#     assert_difference('Address.count', -1) do
#       delete :destroy, id: @address.to_param
#     end
# 
#     assert_redirected_to addresses_path
#   end
end