simplify paths
This commit is contained in:
parent
510cf509ee
commit
35c4864de4
|
@ -4,7 +4,7 @@ module CanCan
|
||||||
class AccessDenied < StandardError; end
|
class AccessDenied < StandardError; end
|
||||||
end
|
end
|
||||||
|
|
||||||
require File.dirname(__FILE__) + '/cancan/ability'
|
require 'cancan/ability'
|
||||||
require File.dirname(__FILE__) + '/cancan/controller_resource'
|
require 'cancan/controller_resource'
|
||||||
require File.dirname(__FILE__) + '/cancan/resource_authorization'
|
require 'cancan/resource_authorization'
|
||||||
require File.dirname(__FILE__) + '/cancan/controller_additions'
|
require 'cancan/controller_additions'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.dirname(__FILE__) + '/../spec_helper'
|
require "spec_helper"
|
||||||
|
|
||||||
describe CanCan::Ability do
|
describe CanCan::Ability do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.dirname(__FILE__) + '/../spec_helper'
|
require "spec_helper"
|
||||||
|
|
||||||
describe CanCan::ControllerAdditions do
|
describe CanCan::ControllerAdditions do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.dirname(__FILE__) + '/../spec_helper'
|
require "spec_helper"
|
||||||
|
|
||||||
describe CanCan::ControllerResource do
|
describe CanCan::ControllerResource do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.dirname(__FILE__) + '/../spec_helper'
|
require "spec_helper"
|
||||||
|
|
||||||
describe CanCan::ResourceAuthorization do
|
describe CanCan::ResourceAuthorization do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
|
|
|
@ -4,7 +4,7 @@ require 'active_support'
|
||||||
require 'active_record'
|
require 'active_record'
|
||||||
require 'action_controller'
|
require 'action_controller'
|
||||||
require 'action_view'
|
require 'action_view'
|
||||||
require File.dirname(__FILE__) + '/../lib/cancan.rb'
|
require 'cancan'
|
||||||
|
|
||||||
Spec::Runner.configure do |config|
|
Spec::Runner.configure do |config|
|
||||||
config.mock_with :rr
|
config.mock_with :rr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user