Permalink
Browse files

Changelog and remove .intern (send doesn't care)

  • Loading branch information...
1 parent b8b6f79 commit c4df12e80c9659fd3776ce4150ef65e076beafc8 @dchelimsky dchelimsky committed Dec 20, 2011
Showing with 8 additions and 6 deletions.
  1. +2 −0 Changelog.md
  2. +6 −6 features/controller_specs/anonymous_controller.feature
View
@@ -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
@@ -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

0 comments on commit c4df12e

Please sign in to comment.