mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Addd application_helper_test.rb (#302)
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user