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
1
Merge Requests
1
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
Tan Phat Nguyen
sample_app
Commits
9dc880a5
Commit
9dc880a5
authored
Nov 04, 2014
by
Tan Phat Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test helper full_title
parent
fac443ff
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
test/helpers/application_helper_test.rb
+9
-0
test/integration/site_layout_test.rb
+2
-0
test/test_helper.rb
+1
-0
No files found.
test/helpers/application_helper_test.rb
0 → 100644
View file @
9dc880a5
require
'test_helper'
class
ApplicationHelperTest
<
ActionView
::
TestCase
test
"full title helper"
do
assert_equal
full_title
,
"Ruby on Rails Tutorial Sample App"
assert_equal
full_title
(
"Help"
),
"Help | Ruby on Rails Tutorial Sample App"
end
end
\ No newline at end of file
test/integration/site_layout_test.rb
View file @
9dc880a5
...
@@ -8,5 +8,7 @@ class SiteLayoutTest < ActionDispatch::IntegrationTest
...
@@ -8,5 +8,7 @@ class SiteLayoutTest < ActionDispatch::IntegrationTest
assert_select
"a[href=?]"
,
help_path
assert_select
"a[href=?]"
,
help_path
assert_select
"a[href=?]"
,
about_path
assert_select
"a[href=?]"
,
about_path
assert_select
"a[href=?]"
,
contact_path
assert_select
"a[href=?]"
,
contact_path
get
signup_path
assert_select
"title"
,
full_title
(
"Sign up"
)
end
end
end
end
test/test_helper.rb
View file @
9dc880a5
...
@@ -5,6 +5,7 @@ require 'rails/test_help'
...
@@ -5,6 +5,7 @@ require 'rails/test_help'
class
ActiveSupport
::
TestCase
class
ActiveSupport
::
TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures
:all
fixtures
:all
include
ApplicationHelper
# Add more helper methods to be used by all tests here...
# Add more helper methods to be used by all tests here...
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