Skip to content

Instantly share code, notes, and snippets.

@npverni
Created October 27, 2009 22:44
Show Gist options
  • Save npverni/220041 to your computer and use it in GitHub Desktop.
Save npverni/220041 to your computer and use it in GitHub Desktop.
bostonrb EventsControllerTest patch
From 13a321af86d47904670ea2c9ad8d49fed527c210 Mon Sep 17 00:00:00 2001
From: Nathan Verni <npverni@gmail.com>
Date: Tue, 27 Oct 2009 18:42:18 -0400
Subject: [PATCH] Updated expectation in EventsControllerTest to match the :rss > :atom redirect
---
test/functional/events_controller_test.rb | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/test/functional/events_controller_test.rb b/test/functional/events_controller_test.rb
index 6953231..5191b8b 100644
--- a/test/functional/events_controller_test.rb
+++ b/test/functional/events_controller_test.rb
@@ -28,8 +28,7 @@ class EventsControllerTest < ActionController::TestCase
get :index, :format => 'rss'
end
- should_render_template 'index.rss'
- should_respond_with :success
+ should_redirect_to("events_path :format => :atom") { events_path(:atom) }
end
context "GET to :index :format => 'atom' with events in the future" do
--
1.6.4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment