Module: ThoughtBot::Shoulda::Controller
- Included in:
- Test::Unit::TestCase
- Defined in:
- lib/shoulda/controller_tests/formats/xml.rb,
lib/shoulda/controller_tests/formats/html.rb,
lib/shoulda/controller_tests/controller_tests.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods, HTML, InstanceMethods, XML
Class Method Summary collapse
-
.included(other) ⇒ Object
:nodoc:.
Class Method Details
.included(other) ⇒ Object
:nodoc:
4 5 6 7 8 9 10 11 12 |
# File 'lib/shoulda/controller_tests/controller_tests.rb', line 4 def self.included(other) # :nodoc: other.class_eval do extend ThoughtBot::Shoulda::Controller::ClassMethods include ThoughtBot::Shoulda::Controller::InstanceMethods ThoughtBot::Shoulda::Controller::ClassMethods::VALID_FORMATS.each do |format| include "ThoughtBot::Shoulda::Controller::#{format.to_s.upcase}".constantize end end end |