1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00
Maybe/test/helpers/application_helper_test.rb

20 lines
612 B
Ruby
Raw Normal View History

2024-02-06 19:51:32 -06:00
require "test_helper"
class ApplicationHelperTest < ActionView::TestCase
test "#title(page_title)" do
title("Test Title")
assert_equal "Test Title", content_for(:title)
end
test "#header_title(page_title)" do
header_title("Test Header Title")
assert_equal "Test Header Title", content_for(:header_title)
end
test "#permitted_accountable_partial(accountable_type)" do
assert_equal "account", permitted_accountable_partial("Account")
assert_equal "user", permitted_accountable_partial("User")
assert_equal "admin_user", permitted_accountable_partial("AdminUser")
end
end