Sha256: bddae330ff106c0ae69f2ff7b7ef8d5b6fe0c493c52c62016b27a34aecb70424

Contents?: true

Size: 528 Bytes

Versions: 45

Compression:

Stored size: 528 Bytes

Contents

require 'active_support/test_case'

class ActiveSupport::TestCase
  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_email_sent(&block)
    assert_difference('ActionMailer::Base.deliveries.size') { yield }
  end

  def assert_email_not_sent(&block)
    assert_no_difference('ActionMailer::Base.deliveries.size') { yield }
  end
end

Version data entries

45 entries across 44 versions & 8 rubygems

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.2.1/test/support/assertions.rb
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.5.4/test/support/assertions.rb
devise-1.5.4 test/support/assertions.rb
devise-1.5.3 test/support/assertions.rb
devise-1.5.2 test/support/assertions.rb
devise-1.5.1 test/support/assertions.rb
devise-1.5.0 test/support/assertions.rb
devise-1.5.0.rc1 test/support/assertions.rb
devise-1.4.9 test/support/assertions.rb
devise-1.4.8 test/support/assertions.rb
devise-1.4.7 test/support/assertions.rb
devise-1.4.5 test/support/assertions.rb
devise-1.4.3 test/support/assertions.rb
devise-1.4.2 test/support/assertions.rb
devise-1.4.1 test/support/assertions.rb
devise-1.3.4 test/support/assertions.rb
devise_certifiable-0.1.0 test/support/assertions.rb
devise-1.3.3 test/support/assertions.rb
devise-1.3.2 test/support/assertions.rb
devise-1.3.1 test/support/assertions.rb