- Updated single quotes to double quotes for consistency - Adjusted spacing in array definitions for better readability - Ensured consistent use of quotes in flash messages and method parameters These changes enhance the overall code style without altering any functionality.
32 lines
689 B
Ruby
32 lines
689 B
Ruby
require "test_helper"
|
|
|
|
class StaticPagesControllerTest < ActionDispatch::IntegrationTest
|
|
def setup
|
|
@base_title = "Ruby on Rails Tutorial Sample App"
|
|
end
|
|
|
|
test "should get root" do
|
|
get root_path
|
|
assert_response :success
|
|
assert_select "title", full_title("Home")
|
|
end
|
|
|
|
test "should get help" do
|
|
get help_path
|
|
assert_response :success
|
|
assert_select "title", full_title("Help")
|
|
end
|
|
|
|
test "Should get about" do
|
|
get about_path
|
|
assert_response :success
|
|
assert_select "title", full_title("About")
|
|
end
|
|
|
|
test "Should get contact" do
|
|
get contact_path
|
|
assert_response :success
|
|
assert_select "title", full_title("Contact")
|
|
end
|
|
end
|