Sha256: 998fea64ef68441229cdef82bb3adf6ca522926578f4b73009e05c918d7386c1

Contents?: true

Size: 808 Bytes

Versions: 1

Compression:

Stored size: 808 Bytes

Contents

require 'helper'

class TopHatPluginTestCase < Test::Unit::TestCase
  
  context "loading the TopHat plugin" do
    
    setup do
      @template = ActionView::Base.new
    end
  
    should "be mixed into ActionView::Base" do
      assert ActionView::Base.included_modules.include?(TopHat::TitleHelpers)
      assert ActionView::Base.included_modules.include?(TopHat::MetaHelpers)
    end
  
    should "respond to 'title' helper" do
      assert @template.respond_to?(:title)
    end

    should "respond to 'title' helper alias" do
      assert @template.respond_to?(:t)
    end

    should "respond to 'description' helper" do
      assert @template.respond_to?(:description)
    end    

    should "respond to 'keywords' helper" do
      assert @template.respond_to?(:keywords)
    end
  
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tophat-1.0.0 test/test_tophat.rb