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/LICENSE +1 -1
- data/README.textile +90 -0
- data/Rakefile +82 -38
- data/TODO +0 -0
- data/lib/merb-auth.rb +4 -72
- metadata +48 -50
- data/README +0 -64
- data/app/controllers/application.rb +0 -4
- data/app/controllers/controller_mixin.rb +0 -150
- data/app/controllers/users.rb +0 -41
- data/app/helpers/application_helper.rb +0 -64
- data/app/views/layout/merb_auth.html.erb +0 -47
- data/app/views/users/login.html.erb +0 -31
- data/app/views/users/signup.html.erb +0 -29
- data/lib/merb-auth/adapter/activerecord.rb +0 -52
- data/lib/merb-auth/adapter/datamapper.rb +0 -78
- data/lib/merb-auth/merbtasks.rb +0 -166
- data/lib/merb-auth/model.rb +0 -80
- data/lib/merb-auth/slicetasks.rb +0 -18
- data/public/stylesheets/master.css +0 -157
- data/spec/controllers/router_spec.rb +0 -29
- data/spec/controllers/session_spec.rb +0 -87
- data/spec/controllers/users_spec.rb +0 -41
- data/spec/controllers/view_helper_spec.rb +0 -27
- data/spec/merb-auth_spec.rb +0 -52
- data/spec/models/ar_user_spec.rb +0 -20
- data/spec/models/dm_user_spec.rb +0 -22
- data/spec/models/shared_user_spec.rb +0 -251
- data/spec/spec_helper.rb +0 -42
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
|