Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only require Cuba when needed.

  • Loading branch information...
commit fe226227b44b39d64cb9dbfc665f7cba0b06b97f 1 parent 5b80f1e
@frodsan frodsan authored
View
1  test/cuba.rb
@@ -1,5 +1,6 @@
require_relative "helper"
require_relative "user"
+require "cuba"
Cuba.use Rack::Session::Cookie, secret: "foo"
Cuba.use Shield::Middleware
View
1  test/helper.rb
@@ -1,6 +1,5 @@
require "cutest"
require "rack/test"
-require "cuba"
require_relative "../lib/shield"
View
1  test/middleware.rb
@@ -1,5 +1,6 @@
require_relative "helper"
require_relative "user"
+require "cuba"
Cuba.use Rack::Session::Cookie, secret: "foo"
Cuba.use Shield::Middleware
View
1  test/nested.rb
@@ -1,5 +1,6 @@
require_relative "helper"
require_relative "user"
+require "cuba"
Cuba.use Rack::Session::Cookie, secret: "foo"
Cuba.plugin Shield::Helpers
Please sign in to comment.
Something went wrong with that request. Please try again.