diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/admin_request_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/fixtures/info_requests.yml | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/admin_request_controller_spec.rb b/spec/controllers/admin_request_controller_spec.rb index 9fb621b25..ff0f74aed 100644 --- a/spec/controllers/admin_request_controller_spec.rb +++ b/spec/controllers/admin_request_controller_spec.rb @@ -17,7 +17,7 @@ describe AdminRequestController, "when administering requests" do end it "saves edits to a request" do - info_requests(:fancy_dog_request).title.should == "Why do you have such a fancy dog?" + info_requests(:fancy_dog_request).title.should == "Why do you have & such a fancy dog?" post :update, { :id => info_requests(:fancy_dog_request), :info_request => { :title => "Renamed", :prominence => "normal", :described_state => "waiting_response", :awaiting_description => false } } response.flash[:notice].should include('successful') ir = InfoRequest.find(info_requests(:fancy_dog_request).id) diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index 39542cb63..62f3a0140 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -50,6 +50,8 @@ describe TrackController, "when sending alerts for a track" do mail.body =~ /(http:\/\/.*\/c\/(.*))/ mail_url = $1 mail_token = $2 + + mail.body.should_not =~ /&/ # Check subscription managing link # XXX reenable this if we ever have a page manager in the track controller diff --git a/spec/fixtures/info_requests.yml b/spec/fixtures/info_requests.yml index a849542b8..bdeef4800 100644 --- a/spec/fixtures/info_requests.yml +++ b/spec/fixtures/info_requests.yml @@ -1,6 +1,6 @@ fancy_dog_request: id: 101 - title: Why do you have such a fancy dog? + title: Why do you have & such a fancy dog? url_title: why_do_you_have_such_a_fancy_dog created_at: 2007-10-11 18:15:57 updated_at: 2007-10-11 18:15:57 |