Permalink
Browse files

Add test for deprecation warning regarding Integration module rename.

  • Loading branch information...
1 parent 5a5294c commit 139604f1d2af2f8a61b859bbca5bb49e9df179e2 @floehopper floehopper committed Aug 6, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/acceptance/integration_module_rename_deprecation_test.rb
@@ -0,0 +1,14 @@
+require File.expand_path('../acceptance_test_helper', __FILE__)
+require 'mocha'
+require 'deprecation_disabler'
+
+class IntegrationModuleRenameDeprecationTest < Test::Unit::TestCase
+
+ include DeprecationDisabler
+
+ def test_should_display_deprecation_warning_if_integration_module_is_referenced
+ disable_deprecations { Mocha::Integration }
+ expected_message = "Mocha::Integration is an internal module and will soon be removed/re-purposed. Please do not use it."
+ assert Mocha::Deprecation.messages.include?(expected_message)
+ end
+end

0 comments on commit 139604f

Please sign in to comment.