Commit 99187df1 by nnnghia98

edit top page

parent f1acce90
// Place all the styles related to the StaticPages controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
module StaticPagesHelper
end
<% provide(:title, "Top Page") %>
<h1>VeNJOB Top page</h1>
require 'test_helper'
class StaticPagesControllerTest < ActionDispatch::IntegrationTest
def setup
@base_title = "VeNJOB"
end
test "should get top_page" do
get root_path
get static_pages_top_page_url
assert_response :success
assert_select "title", "VeNJOB"
assert_select "title", "Top Page | #{@base_title}"
end
test "should get favorite" do
get favorite_url
get static_pages_favorite_url
assert_response :success
assert_select "title", "Favorite | VeNJOB"
assert_select "title", "Favorite | #{@base_title}"
end
test "should get history" do
get history_url
get static_pages_history_url
assert_response :success
assert_select "title", "History | VeNJOB"
assert_select "title", "History | #{@base_title}"
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment