aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/info_request_spec.rb
diff options
context:
space:
mode:
authorlouise <louise>2009-04-06 16:28:44 +0000
committerlouise <louise>2009-04-06 16:28:44 +0000
commitb4a24ed9bee7909cc3e588bd75fa93bf477eebbb (patch)
tree9d550d2337dabb69a8af44756ec9690730a4c6ab /spec/models/info_request_spec.rb
parent5ee3548932eaadda0c6056b06ece53190bfb8d56 (diff)
Remove real_owning_user method - not required
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r--spec/models/info_request_spec.rb29
1 files changed, 1 insertions, 28 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb
index 299a9656e..7e87d0900 100644
--- a/spec/models/info_request_spec.rb
+++ b/spec/models/info_request_spec.rb
@@ -152,34 +152,7 @@ describe InfoRequest do
end
- describe 'when asked if a user is the real owner of this request' do
-
- before do
- @mock_user = mock_model(User)
- @info_request = InfoRequest.new(:user => @mock_user)
- @other_mock_user = mock_model(User)
- end
-
- it 'should return false if a nil object is passed to it' do
- @info_request.is_real_owning_user?(nil).should be_false
- end
-
- it 'should return true if the user is the request\'s owner' do
- @info_request.is_real_owning_user?(@mock_user).should be_true
- end
-
- it 'should return false for a user that is not the owner and does not own every request' do
- @other_mock_user.stub!(:owns_every_request?).and_return(false)
- @info_request.is_real_owning_user?(@other_mock_user).should be_false
- end
-
- it 'should return false if the user is not the owner but owns every request' do
- @other_mock_user.stub!(:owns_every_request?).and_return(true)
- @info_request.is_real_owning_user?(@other_mock_user).should be_false
- end
-
- end
-
+
describe 'when asked if it requires admin' do
before do