lib/shoulda/action_controller.rb in thoughtbot-shoulda-2.10.2 vs lib/shoulda/action_controller.rb in thoughtbot-shoulda-2.11.1

- old
+ new

@@ -22,5 +22,13 @@ include Shoulda::ActiveRecord::Assertions include Shoulda::ActionMailer::Assertions end end end + +if defined?(ActionController::TestCase) + class ActionController::TestCase + def subject + @controller + end + end +end