From c4df12e80c9659fd3776ce4150ef65e076beafc8 Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Tue, 20 Dec 2011 08:24:27 -0600 Subject: [PATCH] Changelog and remove .intern (send doesn't care) - #415 --- Changelog.md | 2 ++ .../controller_specs/anonymous_controller.feature | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Changelog.md b/Changelog.md index 79f7b34cca..3ed1914e11 100644 --- a/Changelog.md +++ b/Changelog.md @@ -5,6 +5,8 @@ * Enhancements * Eliminate deprecation warnings in generated view specs in Rails 3.2 * Ensure namespaced helpers are included automatically (Evgeniy Dolzhenko) + * Added cuke scenario documenting which routes are generated for anonymous + controllers (Alan Shields) ### 2.8.0.rc2 / 2011-12-19 diff --git a/features/controller_specs/anonymous_controller.feature b/features/controller_specs/anonymous_controller.feature index d90de38733..4cd2f6bada 100644 --- a/features/controller_specs/anonymous_controller.feature +++ b/features/controller_specs/anonymous_controller.feature @@ -222,7 +222,7 @@ Feature: anonymous controller # And the rest... %w{get post put delete}.each do |calltype| it "responds to #{calltype}" do - send(calltype.intern, :create) + send(calltype, :create) response.body.should == "create called" end end @@ -237,7 +237,7 @@ Feature: anonymous controller # And the rest... %w{get post put delete}.each do |calltype| it "responds to #{calltype}" do - send(calltype.intern, :new) + send(calltype, :new) response.body.should == "new called" end end @@ -256,7 +256,7 @@ Feature: anonymous controller # And the rest... %w{get post put delete}.each do |calltype| it "responds to #{calltype}" do - send(calltype.intern, :edit, {:id => "anyid"}) + send(calltype, :edit, {:id => "anyid"}) response.body.should == "edit called" end end @@ -275,7 +275,7 @@ Feature: anonymous controller # And the rest... %w{get post put delete}.each do |calltype| it "responds to #{calltype}" do - send(calltype.intern, :show, {:id => "anyid"}) + send(calltype, :show, {:id => "anyid"}) response.body.should == "show called" end end @@ -294,7 +294,7 @@ Feature: anonymous controller # And the rest... %w{get post put delete}.each do |calltype| it "responds to #{calltype}" do - send(calltype.intern, :update, {:id => "anyid"}) + send(calltype, :update, {:id => "anyid"}) response.body.should == "update called" end end @@ -313,7 +313,7 @@ Feature: anonymous controller # And the rest... %w{get post put delete}.each do |calltype| it "responds to #{calltype}" do - send(calltype.intern, :destroy, {:id => "anyid"}) + send(calltype, :destroy, {:id => "anyid"}) response.body.should == "destroy called" end end