Skip to content

Commit

Permalink
Changelog and remove .intern (send doesn't care)
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Dec 20, 2011
1 parent b8b6f79 commit c4df12e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Expand Up @@ -5,6 +5,8 @@
* Enhancements * Enhancements
* Eliminate deprecation warnings in generated view specs in Rails 3.2 * Eliminate deprecation warnings in generated view specs in Rails 3.2
* Ensure namespaced helpers are included automatically (Evgeniy Dolzhenko) * 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 ### 2.8.0.rc2 / 2011-12-19


Expand Down
12 changes: 6 additions & 6 deletions features/controller_specs/anonymous_controller.feature
Expand Up @@ -222,7 +222,7 @@ Feature: anonymous controller
# And the rest... # And the rest...
%w{get post put delete}.each do |calltype| %w{get post put delete}.each do |calltype|
it "responds to #{calltype}" do it "responds to #{calltype}" do
send(calltype.intern, :create) send(calltype, :create)
response.body.should == "create called" response.body.should == "create called"
end end
end end
Expand All @@ -237,7 +237,7 @@ Feature: anonymous controller
# And the rest... # And the rest...
%w{get post put delete}.each do |calltype| %w{get post put delete}.each do |calltype|
it "responds to #{calltype}" do it "responds to #{calltype}" do
send(calltype.intern, :new) send(calltype, :new)
response.body.should == "new called" response.body.should == "new called"
end end
end end
Expand All @@ -256,7 +256,7 @@ Feature: anonymous controller
# And the rest... # And the rest...
%w{get post put delete}.each do |calltype| %w{get post put delete}.each do |calltype|
it "responds to #{calltype}" do it "responds to #{calltype}" do
send(calltype.intern, :edit, {:id => "anyid"}) send(calltype, :edit, {:id => "anyid"})
response.body.should == "edit called" response.body.should == "edit called"
end end
end end
Expand All @@ -275,7 +275,7 @@ Feature: anonymous controller
# And the rest... # And the rest...
%w{get post put delete}.each do |calltype| %w{get post put delete}.each do |calltype|
it "responds to #{calltype}" do it "responds to #{calltype}" do
send(calltype.intern, :show, {:id => "anyid"}) send(calltype, :show, {:id => "anyid"})
response.body.should == "show called" response.body.should == "show called"
end end
end end
Expand All @@ -294,7 +294,7 @@ Feature: anonymous controller
# And the rest... # And the rest...
%w{get post put delete}.each do |calltype| %w{get post put delete}.each do |calltype|
it "responds to #{calltype}" do it "responds to #{calltype}" do
send(calltype.intern, :update, {:id => "anyid"}) send(calltype, :update, {:id => "anyid"})
response.body.should == "update called" response.body.should == "update called"
end end
end end
Expand All @@ -313,7 +313,7 @@ Feature: anonymous controller
# And the rest... # And the rest...
%w{get post put delete}.each do |calltype| %w{get post put delete}.each do |calltype|
it "responds to #{calltype}" do it "responds to #{calltype}" do
send(calltype.intern, :destroy, {:id => "anyid"}) send(calltype, :destroy, {:id => "anyid"})
response.body.should == "destroy called" response.body.should == "destroy called"
end end
end end
Expand Down

0 comments on commit c4df12e

Please sign in to comment.