Sha256: 1197ed78041dd9bc5d4fc4266a43aebe4b9284c905b323c7a5686e09e31760f4
Contents?: true
Size: 1.13 KB
Versions: 7
Compression:
Stored size: 1.13 KB
Contents
require "test_helper" class Admin::DashboardHelperTest < ActiveSupport::TestCase include Admin::DashboardHelper include ActionView::Helpers::UrlHelper include ActionView::Helpers::TextHelper def render(*args); args; end =begin # FIXME: Pending to verify the applications included. Use the keys. should "render applications" do @current_user = Factory(:typus_user) output = applications partial = "admin/helpers/dashboard/applications" options = { :applications => { [ "Site", [ "Asset", "Page" ] ] => nil, [ "System", [ "Delayed::Task" ] ] => nil, [ "Blog", [ "Comment", "Post" ] ] => nil, [ "Typus", [ "TypusUser" ] ] => nil } } assert_equal partial, output.first assert_equal options, output.last end =end should "render resources" do @current_user = Factory(:typus_user) output = resources partial = "admin/helpers/dashboard/resources" options = { :resources => ["Git", "Status", "WatchDog"] } assert_equal partial, output.first assert_equal options, output.last end end
Version data entries
7 entries across 7 versions & 1 rubygems