Permalink
Browse files

Only require Cuba when needed.

  • Loading branch information...
1 parent 5b80f1e commit fe226227b44b39d64cb9dbfc665f7cba0b06b97f @frodsan frodsan committed Dec 22, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −0 test/cuba.rb
  2. +0 −1 test/helper.rb
  3. +1 −0 test/middleware.rb
  4. +1 −0 test/nested.rb
View
@@ -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,6 +1,5 @@
require "cutest"
require "rack/test"
-require "cuba"
require_relative "../lib/shield"
View
@@ -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,5 +1,6 @@
require_relative "helper"
require_relative "user"
+require "cuba"
Cuba.use Rack::Session::Cookie, secret: "foo"
Cuba.plugin Shield::Helpers

0 comments on commit fe22622

Please sign in to comment.