Skip to content
Browse files

ignore textmate project file

  • Loading branch information...
1 parent 72cc47f commit acae346b9bb3bbc88d25e0e4f9752734d3650f25 @fdibartolo committed Mar 7, 2012
Showing with 21 additions and 8 deletions.
  1. +1 −1 .gitignore
  2. +20 −7 spec/requests/home_pages_spec.rb
View
2 .gitignore
@@ -4,5 +4,5 @@ log/*.log
tmp/
.sass-cache/
.idea/
-textmate.tmproj
+*.tmproj
.rspec
View
27 spec/requests/home_pages_spec.rb
@@ -1,17 +1,30 @@
require 'spec_helper'
describe "Home pages" do
- describe "index view" do
- it "should display info about upcoming open session" do
+ describe "index view with no upcoming open session" do
+ it "should display 'stay tunned' banner" do
+ FactoryGirl.create(:session, :status => "Closed")
+ visit root_path
+ page.should have_selector('h1', text: 'no open sessions yet, stay tuned!')
+ end
+ end
+
+ describe "index view with upcoming open session" do
+ before :each do
FactoryGirl.create(:session)
visit root_path
+ end
+
+ it "should display info about it" do
page.should have_selector('h1', text: 'next session')
end
- it "should display 'stay tunned' when no sessions are open" do
- FactoryGirl.create(:session, :status => "Closed")
- visit root_path
- page.should have_selector('h1', text: 'no open sessions yet, stay tuned!')
- end
+ it "should display registration link for an unregistered user" do
+
+ end
+
+ it "should display 'already registered' for a registered user" do
+
+ end
end
end

0 comments on commit acae346

Please sign in to comment.
Something went wrong with that request. Please try again.