Sha256: c573e2fce44c50411ea1c7ca76ab992ae028b130533291f43124fba74b27f9dd
Contents?: true
Size: 523 Bytes
Versions: 15
Compression:
Stored size: 523 Bytes
Contents
module ActionController #:nodoc: class TestResponse #:nodoc: attr_writer :controller_path def capture(name) template.instance_variable_get "@content_for_#{name.to_s}" end if ::Rails::VERSION::STRING < "2.3" def [](name) Kernel.warn <<-WARNING [](name) as an alias for capture(name) (TestResponse extension in rspec-rails) is deprecated and will be removed in the rspec-rails release that follows the rails-2.3.0 release. WARNING capture(name) end end end end
Version data entries
15 entries across 15 versions & 3 rubygems