sample_rails_tailwind/test/controllers/static_pages_controller_test.rb
songtianlun 712cd10894 style: standardize quotation marks and spacing
- 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.
2025-01-04 10:21:22 +08:00

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