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

Commit

Permalink
Removed returning since it has been depricated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Wilson committed Jan 11, 2011
1 parent 562e701 commit d78ba7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 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
4 changes: 1 addition & 3 deletions test/helper.rb
Expand Up @@ -108,9 +108,7 @@ def stub_notice
end

def stub_notice!
returning stub_notice do |notice|
HoptoadNotifier::Notice.stubs(:new => notice)
end
stub_notice.tap { |notice| HoptoadNotifier::Notice.stubs(:new => notice) }
end

def create_dummy
Expand Down
4 changes: 1 addition & 3 deletions test/notice_test.rb
Expand Up @@ -5,9 +5,7 @@ class NoticeTest < Test::Unit::TestCase
include DefinesConstants

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

def build_notice(args = {})
Expand Down

0 comments on commit d78ba7c

Please sign in to comment.