spec/support/middleware.rb in frodo-0.10.8 vs spec/support/middleware.rb in frodo-0.11.0

- old
+ new

@@ -1,19 +1,18 @@ module MiddlewareExampleGroup - def self.included(base) - base.class_eval do - let(:app) { double('@app', call: nil) } - let(:env) { { request_headers: {}, response_headers: {} } } - let(:retries) { 3 } - let(:options) { {} } - let(:client) { double(Frodo::AbstractClient) } - let(:auth_callback) { double(Proc) } + def self.included(base) + base.class_eval do + let(:app) { double('@app', call: nil) } + let(:env) { { request_headers: {}, response_headers: {} } } + let(:retries) { 3 } + let(:options) { {} } + let(:client) { double(Frodo::AbstractClient) } + let(:auth_callback) { double(Proc) } - subject(:middleware) { described_class.new app, client, options } - end + subject(:middleware) { described_class.new app, client, options } end + end - RSpec.configure do |config| - config.include self, - example_group: { file_path: %r{spec/frodo/middleware} } - end - end \ No newline at end of file + RSpec.configure do |config| + config.include self, file_path: %r{spec/frodo/middleware} + end +end