upgraded to rails

This commit is contained in:
ablwr
2014-08-03 21:43:33 -04:00
parent 5366626046
commit 181c4340f7
82 changed files with 3760 additions and 1 deletions

0
test/controllers/.keep Normal file
View File

View File

@@ -0,0 +1,49 @@
require 'test_helper'
class FormsControllerTest < ActionController::TestCase
setup do
@form = forms(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:forms)
end
test "should get new" do
get :new
assert_response :success
end
test "should create form" do
assert_difference('Form.count') do
post :create, form: { }
end
assert_redirected_to form_path(assigns(:form))
end
test "should show form" do
get :show, id: @form
assert_response :success
end
test "should get edit" do
get :edit, id: @form
assert_response :success
end
test "should update form" do
patch :update, id: @form, form: { }
assert_redirected_to form_path(assigns(:form))
end
test "should destroy form" do
assert_difference('Form.count', -1) do
delete :destroy, id: @form
end
assert_redirected_to forms_path
end
end