-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shilinsias
authored and
shilinsias
committed
Feb 8, 2014
1 parent
b2d69dc
commit 725b03c
Showing
8 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,7 @@ def home | |
|
||
def help | ||
end | ||
|
||
def about | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% provide(:title, 'About Us') %> | ||
<h1>About Us</h1> | ||
<p> | ||
The <a href="http://railstutorial.org/">Ruby on Rails Tutorial</a> | ||
is a project to make a book and screencasts to teach web development | ||
with <a href="http://rubyonrails.org/">Ruby on Rails</a>. This | ||
is the sample application for the tutorial. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
<h1>StaticPages#help</h1> | ||
<p>Find me in app/views/static_pages/help.html.erb</p> | ||
<% provide(:title, 'Help') %> | ||
<h1>Help</h1> | ||
<p> | ||
Get help on the Ruby on Rails Tutorial at the | ||
<a href="http://railstutorial.org/help">Rails Tutorial help page</a>. | ||
To get help on this sample app, see the | ||
<a href="http://railstutorial.org/book">Rails Tutorial book</a>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
<h1>StaticPages#home</h1> | ||
<p>Find me in app/views/static_pages/home.html.erb</p> | ||
<% provide(:title, 'Home') %> | ||
<h1>Sample App</h1> | ||
<p> | ||
This is the home page for the | ||
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a> | ||
sample application. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
require 'spec_helper' | ||
|
||
describe "StaticPages" do | ||
describe "Home Pages" do | ||
it "should have the content 'Sample App" do | ||
visit '/static_pages/home' | ||
expect(page).to have_content('Sample App') | ||
end | ||
it "should have the right title" do | ||
visit '/static_pages/home' | ||
expect(page).to have_title("Ruby on Rails Tutorial Sample App | Home") | ||
end | ||
end | ||
|
||
describe "Help Pages" do | ||
it "should have the content 'Help'" do | ||
visit '/static_pages/help' | ||
expect(page).to have_content('Help') | ||
end | ||
it "should have the right title" do | ||
visit '/static_pages/help' | ||
expect(page).to have_title("Ruby on Rails Tutorial Sample App | Help") | ||
end | ||
end | ||
|
||
describe "About Us" do | ||
it "should have the content 'About Us'" do | ||
visit '/static_pages/about' | ||
expect(page).to have_content('About Us') | ||
end | ||
it "should have the right title" do | ||
visit '/static_pages/about' | ||
expect(page).to have_title("Ruby on Rails Tutorial Sample App | About Us") | ||
end | ||
end | ||
|
||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters