Permalink
Browse files

simplify paths

  • Loading branch information...
1 parent 510cf50 commit 35c4864de49b50dbd3dd05bcb0c9a70ce90d48e1 @dchelimsky dchelimsky committed with Apr 13, 2010
View
@@ -4,7 +4,7 @@ module CanCan
class AccessDenied < StandardError; end
end
-require File.dirname(__FILE__) + '/cancan/ability'
-require File.dirname(__FILE__) + '/cancan/controller_resource'
-require File.dirname(__FILE__) + '/cancan/resource_authorization'
-require File.dirname(__FILE__) + '/cancan/controller_additions'
+require 'cancan/ability'
+require 'cancan/controller_resource'
+require 'cancan/resource_authorization'
+require 'cancan/controller_additions'
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require "spec_helper"
describe CanCan::Ability do
before(:each) do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require "spec_helper"
describe CanCan::ControllerAdditions do
before(:each) do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require "spec_helper"
describe CanCan::ControllerResource do
before(:each) do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require "spec_helper"
describe CanCan::ResourceAuthorization do
before(:each) do
View
@@ -4,7 +4,7 @@
require 'active_record'
require 'action_controller'
require 'action_view'
-require File.dirname(__FILE__) + '/../lib/cancan.rb'
+require 'cancan'
Spec::Runner.configure do |config|
config.mock_with :rr

0 comments on commit 35c4864

Please sign in to comment.