mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 07:09:39 +02:00
Addd application_helper_test.rb (#302)
This commit is contained in:
parent
b20867d664
commit
4099743107
1 changed files with 19 additions and 0 deletions
19
test/helpers/application_helper_test.rb
Normal file
19
test/helpers/application_helper_test.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue