Permalink
Browse files

Added a Pages controller

  • Loading branch information...
1 parent c61dfca commit a0218c08365298ac328dafe7e3590915bf968039 @mikeaddison93 committed Apr 18, 2011
@@ -0,0 +1,8 @@
+class PagesController < ApplicationController
+ def home
+ end
+
+ def contact
+ end
+
+end
@@ -0,0 +1,2 @@
+module PagesHelper
+end
@@ -0,0 +1,2 @@
+<h1>Pages#contact</h1>
+<p>Find me in app/views/pages/contact.html.erb</p>
@@ -0,0 +1,2 @@
+<h1>Pages#home</h1>
+<p>Find me in app/views/pages/home.html.erb</p>
View
@@ -1,4 +1,8 @@
SampleApp::Application.routes.draw do
+ get "pages/home"
+
+ get "pages/contact"
+
# The priority is based upon order of creation:
# first created -> highest priority.
@@ -0,0 +1,19 @@
+require 'spec_helper'
+
+describe PagesController do
+
+ describe "GET 'home'" do
+ it "should be successful" do
+ get 'home'
+ response.should be_success
+ end
+ end
+
+ describe "GET 'contact'" do
+ it "should be successful" do
+ get 'contact'
+ response.should be_success
+ end
+ end
+
+end
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+# Specs in this file have access to a helper object that includes
+# the PagesHelper. For example:
+#
+# describe PagesHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# helper.concat_strings("this","that").should == "this that"
+# end
+# end
+# end
+describe PagesHelper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "pages/contact.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "pages/home.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end

0 comments on commit a0218c0

Please sign in to comment.