Browse files

Actually installed rspec

  • Loading branch information...
1 parent 904806b commit 4832eec3ff93dfea1d18a662fd2d5b51fbd43162 @LorenB committed Nov 5, 2011
View
6 Gemfile
@@ -7,9 +7,9 @@ gem 'rails', '3.1.1'
gem 'sqlite3'
-#group :development do
-# gem 'rspec-rails', '2.7.0'
-#end
+group :development do
+ gem 'rspec-rails', '2.7.0'
+end
group :test do
gem 'rspec', '2.7.0'
View
3 app/controllers/pages_controller.rb
@@ -5,7 +5,4 @@ def home
def contact
end
- def about
- end
-
end
View
19 spec/controllers/pages_controller_spec.rb
@@ -0,0 +1,19 @@
+require 'spec_helper'
+
+describe PagesController do
+
+ describe "GET 'home'" do
+ it "returns http success" do
+ get 'home'
+ response.should be_success
+ end
+ end
+
+ describe "GET 'contact'" do
+ it "returns http success" do
+ get 'contact'
+ response.should be_success
+ end
+ end
+
+end
View
15 spec/helpers/pages_helper_spec.rb
@@ -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
View
5 spec/views/pages/contact.html.erb_spec.rb
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "pages/contact.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
View
5 spec/views/pages/home.html.erb_spec.rb
@@ -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 4832eec

Please sign in to comment.