aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/link_to_helper_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-29 17:45:36 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-29 17:45:36 +0100
commit0f97780a0cb4412af8c0b2144edc0806cd301a48 (patch)
tree91cbf573e8a8ded449c25830bda3d14033589ec0 /spec/helpers/link_to_helper_spec.rb
parente3c1bc7bc18a24fabed59dd3b46af2dbe408fc1c (diff)
Update spec for previous commit.
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
-rw-r--r--spec/helpers/link_to_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index 57765056c..9ec0afce1 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -40,8 +40,8 @@ describe LinkToHelper do
describe 'when displaying a user admin link for a request' do
- it 'should return the text "An anonymous user (external)" in the case where there is no username' do
- info_request = mock_model(InfoRequest, :user_name => nil,
+ it 'should return the text "An anonymous user (external)" in the case where there is no external username' do
+ info_request = mock_model(InfoRequest, :external_user_name => nil,
:is_external? => true)
user_admin_link_for_request(info_request).should == 'Anonymous user (external)'
end