FogBugz #44: created contacts controller.
This commit is contained in:
parent
0de0ec795c
commit
8992818890
12 changed files with 85 additions and 0 deletions
39
test/functional/contacts_controller_test.rb
Normal file
39
test/functional/contacts_controller_test.rb
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ContactsControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get :create
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get show" do
|
||||
get :show
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get update" do
|
||||
get :update
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get destroy" do
|
||||
get :destroy
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
4
test/unit/helpers/contacts_helper_test.rb
Normal file
4
test/unit/helpers/contacts_helper_test.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ContactsHelperTest < ActionView::TestCase
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue