test/rails/config/environment.rb in rack-oauth2-server-1.2.2 vs test/rails/config/environment.rb in rack-oauth2-server-1.3.0

- old
+ new

@@ -3,10 +3,12 @@ config.action_controller.session = { :key=>"_myapp_session", :secret=>"Stay hungry. Stay foolish. -- Steve Jobs" } config.after_initialize do config.oauth.database = DATABASE config.oauth.scopes = %w{read write} + config.oauth.host = "example.org" config.oauth.authenticator = lambda do |username, password| "Superman" if username == "cowbell" && password == "more" end end + config.middleware.use Rack::OAuth2::Server::Admin.mount end