Commit c81913ab by nnnghia98

fix conflict

parents 4bffefa9 fd402f92
require 'test_helper' require 'test_helper'
class StaticPagesControllerTest < ActionDispatch::IntegrationTest class StaticPagesControllerTest < ActionDispatch::IntegrationTest
def setup
@base_title = "VeNJOB"
end
test "should get top_page" do test "should get top_page" do
get root_path get static_pages_top_page_url
assert_response :success assert_response :success
assert_select "title", "VeNJOB" assert_select "title", "Top Page | #{@base_title}"
end end
test "should get favorite" do test "should get favorite" do
get favorite_url get static_pages_favorite_url
assert_response :success assert_response :success
assert_select "title", "Favorite | VeNJOB" assert_select "title", "Favorite | #{@base_title}"
end end
test "should get history" do test "should get history" do
get history_url get static_pages_history_url
assert_response :success assert_response :success
assert_select "title", "History | VeNJOB" assert_select "title", "History | #{@base_title}"
end end
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