Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Đường Sỹ Hoàng
sample_app
Commits
196dcd1b
Commit
196dcd1b
authored
Nov 08, 2019
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed indentation
parent
88fc0118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
test/controllers/static_pages_controller_test.rb
+26
-27
No files found.
test/controllers/static_pages_controller_test.rb
View file @
196dcd1b
require
"test_helper"
require
"test_helper"
class
StaticPagesControllerTest
<
ActionDispatch
::
IntegrationTest
class
StaticPagesControllerTest
<
ActionDispatch
::
IntegrationTest
test
"should get home"
do
get
root_path
assert_response
:success
assert_select
"title"
,
"Ruby on Rails Tutorial Sample App"
end
test
"should get home
"
do
test
"should get help
"
do
get
root
_path
get
help
_path
assert_response
:success
assert_response
:success
assert_select
"title"
,
"
Ruby on Rails Tutorial Sample App"
assert_select
"title"
,
"Help |
Ruby on Rails Tutorial Sample App"
end
end
test
"should get help
"
do
test
"should get about
"
do
get
help
_path
get
about
_path
assert_response
:success
assert_response
:success
assert_select
"title"
,
"Help
| Ruby on Rails Tutorial Sample App"
assert_select
"title"
,
"About
| Ruby on Rails Tutorial Sample App"
end
end
test
"should get about"
do
test
"should get contact"
do
get
about_path
get
contact_path
assert_response
:success
assert_response
:success
assert_select
"title"
,
"About | Ruby on Rails Tutorial Sample App"
assert_select
"title"
,
"Contact | Ruby on Rails Tutorial Sample App"
end
end
test
"should get contact"
do
test
"should get signup"
do
get
contact_path
get
signup_path
assert_response
:success
assert_response
:success
assert_select
"title"
,
"Contact | Ruby on Rails Tutorial Sample App"
end
end
test
"should get signup"
do
get
signup_path
assert_response
:success
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment