Sha256: ea114c405e39a405cf2a50bade2c3cce0a2766ac804e3dbe5e1e0eca73c12900

Contents?: true

Size: 488 Bytes

Versions: 8

Compression:

Stored size: 488 Bytes

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

  should "render resources" do
    current_user = Factory(:typus_user)
    output = resources(current_user)
    expected = ["admin/helpers/dashboard/resources", { :resources => ["Git", "Status", "WatchDog"] }]
    assert_equal expected, output
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.0.2 test/helpers/admin/dashboard_helper_test.rb
typus-3.0.1 test/helpers/admin/dashboard_helper_test.rb
typus-3.0.0 test/helpers/admin/dashboard_helper_test.rb
typus-1.0.0.pre13 test/helpers/admin/dashboard_helper_test.rb
typus-1.0.0.pre12 test/helpers/admin/dashboard_helper_test.rb
typus-1.0.0.pre11 test/helpers/admin/dashboard_helper_test.rb
typus-1.0.0.pre10 test/helpers/admin/dashboard_helper_test.rb
typus-1.0.0.pre9 test/helpers/admin/dashboard_helper_test.rb