diff options
author | Francis Irving <francis@mysociety.org> | 2009-10-29 17:57:46 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-10-29 17:57:46 +0000 |
commit | 64d4a05042ba8ee06ac1802226e1b542bc0ac293 (patch) | |
tree | 983562fe03571604b8cd43ebff32e96702f258af /spec/controllers/request_controller_spec.rb | |
parent | b10b047bd40dad870ec99ad0f786f494b9842465 (diff) |
Reflect behaviour change in 1e74ce210dd3584fbed6f53d2c0360045d7161b5
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 6cfe911d8..e99732ec8 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -1021,11 +1021,11 @@ describe RequestController, "when viewing comments" do response.body.should_not have_tag("div#comment-1 h2", /You.*left an annotation/m) end - it "should say if you were the user who submitted it" do + it "should link to the user who submitted to it, even if it is you" do session[:user_id] = users(:silly_name_user).id get :show, :url_title => 'why_do_you_have_such_a_fancy_dog' - response.body.should_not have_tag("div#comment-1 h2", /Silly.*left an annotation/m) - response.body.should have_tag("div#comment-1 h2", /You.*left an annotation/m) + response.body.should have_tag("div#comment-1 h2", /Silly.*left an annotation/m) + response.body.should_not have_tag("div#comment-1 h2", /You.*left an annotation/m) end end |