merb-auth 0.1.0 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb DELETED
@@ -1,42 +0,0 @@
1
- require 'rubygems'
2
- require 'merb-core'
3
- require 'spec'
4
-
5
- # Add the dependency in a before_app_loads hook
6
- Merb::BootLoader.before_app_loads { require(File.join(File.dirname(__FILE__), '..', 'lib', 'merb-auth')) }
7
-
8
- # Using Merb.root below makes sure that the correct root is set for
9
- # - testing standalone, without being installed as a gem and no host application
10
- # - testing from within the host application; its root will be used
11
- Merb.start_environment(
12
- :testing => true,
13
- :adapter => 'runner',
14
- :environment => ENV['MERB_ENV'] || 'test',
15
- :merb_root => Merb.root,
16
- :session_store => 'memory'
17
- )
18
-
19
- module Merb
20
- module Test
21
- module SliceHelper
22
-
23
- # The absolute path to the current slice
24
- def current_slice_root
25
- @current_slice_root ||= File.expand_path(File.join(File.dirname(__FILE__), '..'))
26
- end
27
-
28
- # Whether the specs are being run from a host application or standalone
29
- def standalone?
30
- not $SLICED_APP
31
- end
32
-
33
- end
34
- end
35
- end
36
-
37
- Spec::Runner.configure do |config|
38
- config.include(Merb::Test::ViewHelper)
39
- config.include(Merb::Test::RouteHelper)
40
- config.include(Merb::Test::ControllerHelper)
41
- config.include(Merb::Test::SliceHelper)
42
- end