Sha256: f7885a42b5aac278a5eabd6a9dca495d5875995f7a96b64a568874c7324f8184

Contents?: true

Size: 533 Bytes

Versions: 11

Compression:

Stored size: 533 Bytes

Contents

# encoding: utf-8

module Link2
  module AssertionsHelper
    def assert_not(assertion)
      assert !assertion
    end

    def assert_blank(assertion)
      assert assertion.blank?
    end

    def assert_not_blank(assertion)
      assert !assertion.blank?
    end
    alias :assert_present :assert_not_blank

    def assert_no_select(*args)
      assert_raise Test::Unit::AssertionFailedError do
        assert_select(*args)
      end
    end
  end
end

ActiveSupport::TestCase.class_eval do
  include Link2::AssertionsHelper
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
link2-0.1.11 test/support/assertions_helper.rb
link2-0.1.10 test/support/assertions_helper.rb
link2-0.1.9 test/support/assertions_helper.rb
link2-0.1.8 test/support/assertions_helper.rb
link2-0.1.7 test/support/assertions_helper.rb
link2-0.1.6 test/support/assertions_helper.rb
link2-0.1.5 test/support/assertions_helper.rb
link2-0.1.4 test/support/assertions_helper.rb
link2-0.1.3 test/support/assertions_helper.rb
link2-0.1.1 test/support/assertions_helper.rb
link2-0.1.0 test/support/assertions_helper.rb