Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add test for deprecation warning regarding Integration module rename.

  • Loading branch information...
commit 139604f1d2af2f8a61b859bbca5bb49e9df179e2 1 parent 5a5294c
James Mead authored August 06, 2012
14  test/acceptance/integration_module_rename_deprecation_test.rb
... ...
@@ -0,0 +1,14 @@
  1
+require File.expand_path('../acceptance_test_helper', __FILE__)
  2
+require 'mocha'
  3
+require 'deprecation_disabler'
  4
+
  5
+class IntegrationModuleRenameDeprecationTest < Test::Unit::TestCase
  6
+
  7
+  include DeprecationDisabler
  8
+
  9
+  def test_should_display_deprecation_warning_if_integration_module_is_referenced
  10
+    disable_deprecations { Mocha::Integration }
  11
+    expected_message = "Mocha::Integration is an internal module and will soon be removed/re-purposed. Please do not use it."
  12
+    assert Mocha::Deprecation.messages.include?(expected_message)
  13
+  end
  14
+end

0 notes on commit 139604f

Please sign in to comment.
Something went wrong with that request. Please try again.