Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c4df12e80c9659fd3776ce4150ef65e076beafc8 1 parent b8b6f79
David Chelimsky dchelimsky authored
2  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
12 features/controller_specs/anonymous_controller.feature
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.