Sha256: d7d99125e440af77f9f0290d50bd1648e43d8175c154bd83472f5885ec2b6018

Contents?: true

Size: 703 Bytes

Versions: 120

Compression:

Stored size: 703 Bytes

Contents

require 'test/unit'
require 'test/unit/assertions'
require 'cgi'
require 'time'
require 'assert_cookie'

# This stub for +clean_backtrace+ is included for testing
# because I cannot figure out how to require the version that
# Rails provides. Help me fix this.
module Test
  module Unit
    module Assertions
      def clean_backtrace; yield  end
    end
    
    class TestCase
    protected
      def assert_pass
        assert_block("assert_pass must be called with a block.") { block_given? }
        yield
      end

      def assert_fail
        assert_block("assert_fail must be called with a block.") { block_given? }
        yield
      rescue AssertionFailedError
      end
    end
  end
end

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
backlog-0.37.2 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.37.1 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.36.2 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.0.4 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.0.5 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.1.0 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.1.1 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.1.2 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.0 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.1 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.3 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.5 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.4 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.2 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.6 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.7 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.10.8 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.11.0 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.12.0 vendor/plugins/assert_cookie/test/test_helper.rb
backlog-0.12.1 vendor/plugins/assert_cookie/test/test_helper.rb