Permalink
Browse files

added vanilla account resource

  • Loading branch information...
1 parent af5d3d3 commit de2a9e63e28b89054cccbf5067a50a9d8c1bc1c1 @hukl committed Apr 9, 2011
@@ -0,0 +1,14 @@
+class AccountsController < ApplicationController
+ def show
+ end
+
+ def edit
+ end
+
+ def update
+ end
+
+ def destroy
+ end
+
+end
@@ -0,0 +1,2 @@
+module AccountsHelper
+end
@@ -0,0 +1,2 @@
+<h1>Accounts#destroy</h1>
+<p>Find me in app/views/accounts/destroy.html.erb</p>
@@ -0,0 +1,2 @@
+<h1>Accounts#edit</h1>
+<p>Find me in app/views/accounts/edit.html.erb</p>
@@ -0,0 +1,2 @@
+<h1>Accounts#show</h1>
+<p>Find me in app/views/accounts/show.html.erb</p>
@@ -0,0 +1,2 @@
+<h1>Accounts#update</h1>
+<p>Find me in app/views/accounts/update.html.erb</p>
@@ -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
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class AccountsHelperTest < ActionView::TestCase
+end

0 comments on commit de2a9e6

Please sign in to comment.