diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-08-13 15:47:55 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-16 12:41:43 +0100 |
commit | ac803d5f2623f4978688199c478ecaa55fea514d (patch) | |
tree | 7d90fdded89254c3bdaf93ddbbb914853638015f /spec/controllers/request_controller_spec.rb | |
parent | 710754b4bb053cf28773da13f43ad05b864305e1 (diff) |
Clarify specs.
They refer to the case where the request itself is hidden.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 2c605a139..959050eb9 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -905,7 +905,7 @@ describe RequestController, "when changing prominence of a request" do get :show, :url_title => 'why_do_you_have_such_a_fancy_dog' end - it "should not download attachments if hidden" do + it "should not download attachments if the request is hidden" do ir = info_requests(:fancy_dog_request) ir.prominence = 'hidden' ir.save! @@ -928,8 +928,8 @@ describe RequestController, "when changing prominence of a request" do response.code.should == '410' end - it 'should not generate an HTML version of an attachment whose prominence is hidden/requester - only even for the requester or an admin but should return a 404' do + it 'should not generate an HTML version of an attachment for a request whose prominence + is hidden/requester_only even for the requester or an admin but should return a 404' do ir = info_requests(:fancy_dog_request) ir.prominence = 'hidden' ir.save! @@ -943,8 +943,8 @@ describe RequestController, "when changing prominence of a request" do end.should raise_error(ActiveRecord::RecordNotFound) end - it 'should not generate an HTML version of an attachment whose prominence is hidden/requester - only even for the requester or an admin but should return a 404' do + it 'should not generate an HTML version of an attachment for a request whose prominence + is hidden/requester only even for the requester or an admin but should return a 404' do ir = info_requests(:fancy_dog_request) ir.prominence = 'hidden' ir.save! |