Guest User

Untitled

a guest
Apr 21st, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. From 13a321af86d47904670ea2c9ad8d49fed527c210 Mon Sep 17 00:00:00 2001
  2. From: Nathan Verni <npverni@gmail.com>
  3. Date: Tue, 27 Oct 2009 18:42:18 -0400
  4. Subject: [PATCH] Updated expectation in EventsControllerTest to match the :rss > :atom redirect
  5.  
  6. ---
  7. test/functional/events_controller_test.rb | 3 +--
  8. 1 files changed, 1 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/test/functional/events_controller_test.rb b/test/functional/events_controller_test.rb
  11. index 6953231..5191b8b 100644
  12. --- a/test/functional/events_controller_test.rb
  13. +++ b/test/functional/events_controller_test.rb
  14. @@ -28,8 +28,7 @@ class EventsControllerTest < ActionController::TestCase
  15. get :index, :format => 'rss'
  16. end
  17.  
  18. - should_render_template 'index.rss'
  19. - should_respond_with :success
  20. + should_redirect_to("events_path :format => :atom") { events_path(:atom) }
  21. end
  22.  
  23. context "GET to :index :format => 'atom' with events in the future" do
  24. --
  25. 1.6.4.2
Add Comment
Please, Sign In to add comment