declarative_authorization 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_helper.rb CHANGED
@@ -3,9 +3,10 @@ RAILS_ROOT = File.join(File.dirname(__FILE__), %w{.. .. .. ..})
3
3
  require File.join(File.dirname(__FILE__), %w{.. lib declarative_authorization rails_legacy})
4
4
  require File.join(File.dirname(__FILE__), %w{.. lib declarative_authorization authorization})
5
5
  require File.join(File.dirname(__FILE__), %w{.. lib declarative_authorization in_controller})
6
+ require File.join(File.dirname(__FILE__), %w{.. lib declarative_authorization maintenance})
6
7
 
7
8
  unless defined?(ActiveRecord)
8
- if File.directory? RAILS_ROOT + 'config'
9
+ if File.directory? RAILS_ROOT + '/config'
9
10
  puts 'using config/boot.rb'
10
11
  ENV['RAILS_ENV'] = 'test'
11
12
  require File.join(RAILS_ROOT, 'config', 'boot.rb')
@@ -105,6 +106,8 @@ ActionController::Base.send :include, Authorization::AuthorizationInController
105
106
  require "action_controller/test_process"
106
107
 
107
108
  class Test::Unit::TestCase
109
+ include Authorization::TestHelper
110
+
108
111
  def request! (user, action, reader, params = {})
109
112
  action = action.to_sym if action.is_a?(String)
110
113
  @controller.current_user = user
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: declarative_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.4"
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steffen Bartsch
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-15 00:00:00 +01:00
12
+ date: 2010-02-21 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency