Skip to content

Commit ea5f071

Browse files
author
Josh Justice
committed
Add comment about rails-controller-testing gem
1 parent 02d6d55 commit ea5f071

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/generators/rspec/scaffold/templates/controller_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
# is no simpler way to get a handle on the object needed for the example.
1818
# Message expectations are only used when there is no simpler way to specify
1919
# that an instance is receiving a specific message.
20+
#
21+
# Also compared to earlier versions of this generator, there are no longer any
22+
# expectations of assigns and templates rendered. These features have been
23+
# removed from Rails core in Rails 5, but can be added back in via the
24+
# `rails-controller-testing` gem.
2025

2126
<% module_namespacing do -%>
2227
RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:controller) %> do

0 commit comments

Comments
 (0)