-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed deprecated enforce_access_controls
- Loading branch information
Showing
2 changed files
with
0 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,22 +67,6 @@ def session | |
end | ||
end | ||
|
||
describe "enforce_access_controls" do | ||
describe "when the method exists" do | ||
it "should call the method" do | ||
Deprecation.stub(:warn) | ||
subject.params = {:action => :index} | ||
subject.enforce_access_controls.should be_true | ||
end | ||
end | ||
describe "when the method doesn't exist" do | ||
it "should not call the method, but should return true" do | ||
Deprecation.stub(:warn) | ||
subject.params = {:action => :facet} | ||
subject.enforce_access_controls.should be_true | ||
end | ||
end | ||
end | ||
describe "enforce_show_permissions" do | ||
it "should allow a user w/ edit permissions to view an embargoed object" do | ||
user = User.new :uid=>'[email protected]' | ||
|