Sha256: a5c3fd5c19912ee58ca6f204664a8179c7a2aa4fabf12868312676d8b5375e27

Contents?: true

Size: 632 Bytes

Versions: 10

Compression:

Stored size: 632 Bytes

Contents

module Zena
  module View
    class TestCase < ActionView::TestCase
      include Zena::Use::Fixtures
      include Zena::Use::TestHelper
      include Zena::Acts::Secure
      include ::Authlogic::TestCase

      setup :activate_authlogic

      def setup
        login :anon
      end

      def assert_css(match, target)
        target = Hpricot(target)
        assert !target.search(match).empty?,
          "expected tag, but no tag found matching #{match.inspect} in:\n#{target.inspect}"
      end

      def self.helper_attr(*args)
        # Ignore since we include helpers in the TestCase itself
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zena-0.16.9 lib/zena/view/test_case.rb
zena-0.16.8 lib/zena/view/test_case.rb
zena-0.16.7 lib/zena/view/test_case.rb
zena-0.16.6 lib/zena/view/test_case.rb
zena-0.16.5 lib/zena/view/test_case.rb
zena-0.16.4 lib/zena/view/test_case.rb
zena-0.16.3 lib/zena/view/test_case.rb
zena-0.16.2 lib/zena/view/test_case.rb
zena-0.16.1 lib/zena/view/test_case.rb
zena-0.16.0 lib/zena/view/test_case.rb