Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
fix Kernel#returning deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Kovacs committed Feb 14, 2011
1 parent 72168c9 commit 5e9824a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/catcher_test.rb
Expand Up @@ -16,7 +16,7 @@ def ignore(exception_class)
end

def build_controller_class(&definition)
returning Class.new(ActionController::Base) do |klass|
Class.new(ActionController::Base).tap do |klass|
klass.__send__(:include, HoptoadNotifier::Rails::ActionControllerCatcher)
klass.class_eval(&definition) if definition
define_constant('HoptoadTestController', klass)
Expand Down
2 changes: 1 addition & 1 deletion test/helper.rb
Expand Up @@ -117,7 +117,7 @@ def stub_notice
end

def stub_notice!
returning stub_notice do |notice|
stub_notice.tap do |notice|
HoptoadNotifier::Notice.stubs(:new => notice)
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/notice_test.rb
Expand Up @@ -5,7 +5,7 @@ class NoticeTest < Test::Unit::TestCase
include DefinesConstants

def configure
returning HoptoadNotifier::Configuration.new do |config|
HoptoadNotifier::Configuration.new.tap do |config|
config.api_key = 'abc123def456'
end
end
Expand Down

0 comments on commit 5e9824a

Please sign in to comment.