Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added vanilla account resource

  • Loading branch information...
commit de2a9e63e28b89054cccbf5067a50a9d8c1bc1c1 1 parent af5d3d3
@hukl authored
View
14 app/controllers/accounts_controller.rb
@@ -0,0 +1,14 @@
+class AccountsController < ApplicationController
+ def show
+ end
+
+ def edit
+ end
+
+ def update
+ end
+
+ def destroy
+ end
+
+end
View
2  app/helpers/accounts_helper.rb
@@ -0,0 +1,2 @@
+module AccountsHelper
+end
View
2  app/views/accounts/destroy.html.erb
@@ -0,0 +1,2 @@
+<h1>Accounts#destroy</h1>
+<p>Find me in app/views/accounts/destroy.html.erb</p>
View
2  app/views/accounts/edit.html.erb
@@ -0,0 +1,2 @@
+<h1>Accounts#edit</h1>
+<p>Find me in app/views/accounts/edit.html.erb</p>
View
2  app/views/accounts/show.html.erb
@@ -0,0 +1,2 @@
+<h1>Accounts#show</h1>
+<p>Find me in app/views/accounts/show.html.erb</p>
View
2  app/views/accounts/update.html.erb
@@ -0,0 +1,2 @@
+<h1>Accounts#update</h1>
+<p>Find me in app/views/accounts/update.html.erb</p>
View
24 test/functional/accounts_controller_test.rb
@@ -0,0 +1,24 @@
+require 'test_helper'
+
+class AccountsControllerTest < ActionController::TestCase
+ 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
View
4 test/unit/helpers/accounts_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class AccountsHelperTest < ActionView::TestCase
+end
Please sign in to comment.
Something went wrong with that request. Please try again.