lib/rack/app/test.rb in rack-app-0.8.1 vs lib/rack/app/test.rb in rack-app-0.8.2
- old
+ new
@@ -6,10 +6,10 @@
def self.included(klass)
klass.define_singleton_method :rack_app do |rack_app_class=nil, &constructor|
subject_app = rack_app_class.is_a?(Class) ? rack_app_class : Class.new(Rack::App)
- subject_app.instance_eval(&constructor) unless constructor.nil?
+ subject_app.class_eval(&constructor) unless constructor.nil?
klass.__send__ :define_method, :rack_app do
@rack_app = subject_app
end
\ No newline at end of file