Testing Page Controller Integration in Maybe Finance
This test suite validates core page functionality in the Maybe Finance application, focusing on controller-level tests for dashboard and changelog features. It uses ActionDispatch::IntegrationTest to ensure proper routing and response handling with authenticated users.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
maybe-finance/maybe
test/controllers/pages_controller_test.rb
require "test_helper"
class PagesControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in @user = users(:family_admin)
end
test "dashboard" do
get root_path
assert_response :ok
end
test "changelog" do
VCR.use_cassette("git_repository_provider/fetch_latest_release_notes") do
get changelog_path
assert_response :ok
end
end
end