Sha256: af85afc4bcd66ba9bdf83085c1fe24f65447b9abbd8310a01021973f8c8ad7f5

Contents?: true

Size: 571 Bytes

Versions: 3

Compression:

Stored size: 571 Bytes

Contents

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

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

      def setup
        login(:anon, 'zena')
      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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zena-0.15.2 lib/zena/view/test_case.rb
zena-0.15.1 lib/zena/view/test_case.rb
zena-0.15.0 lib/zena/view/test_case.rb