test/unit/error_handler_tests.rb in deas-0.43.0 vs test/unit/error_handler_tests.rb in deas-0.43.1
- old
+ new
@@ -10,11 +10,11 @@
# positives
@error_proc_spies = (Factory.integer(3) + 1).times.map{ ErrorProcSpy.new }
@server_data = Factory.server_data(:error_procs => @error_proc_spies)
@request = Factory.string
@response = Factory.string
- @handler_class = Deas::ErrorHandler
+ @handler_class = Factory.string
@handler = Factory.string
@params = Factory.string
@splat = Factory.string
@route_path = Factory.string
@@ -26,21 +26,23 @@
:handler => @handler,
:params => @params,
:splat => @splat,
:route_path => @route_path
}
+
+ @error_handler_class = Deas::ErrorHandler
end
- subject{ @handler_class }
+ subject{ @error_handler_class }
should have_imeths :run
end
class InitTests < UnitTests
desc "when init"
setup do
@exception = Factory.exception
- @error_handler = @handler_class.new(@exception, @context_hash)
+ @error_handler = @error_handler_class.new(@exception, @context_hash)
end
subject{ @error_handler }
should have_readers :exception, :context, :error_procs
should have_imeths :run