spec/lib/fozzie/rack/middleware_spec.rb in fozzie-0.0.15 vs spec/lib/fozzie/rack/middleware_spec.rb in fozzie-0.0.16

- old
+ new

@@ -3,14 +3,12 @@ require 'rack/test' describe Fozzie::Rack::Middleware do subject do - RackApp = Class.new do - def call(env) - env - end - end unless defined?(RackApp) + unless defined?(RackApp) + RackApp = Class.new { def call(env); env end } + end Fozzie::Rack::Middleware.new RackApp.new end it { should respond_to(:call) } it { should respond_to(:generate_key) } \ No newline at end of file