Module Spec::Rails::Example::ControllerExampleGroup::TemplateIsolationExtensions

  1. lib/spec/rails/example/controller_example_group.rb

Methods

public instance

  1. _pick_template
  2. file_exists?
  3. render
  4. render_file

Public instance methods

_pick_template (*args)

Rails 2.2

[show source]
# File lib/spec/rails/example/controller_example_group.rb, line 163
          def _pick_template(*args)
            @_first_render ||= args[0] unless args[0] =~ /^layouts/
            PickedTemplate.new
          end
file_exists? (ignore)
[show source]
# File lib/spec/rails/example/controller_example_group.rb, line 156
          def file_exists?(ignore); true; end
render (*args)
[show source]
# File lib/spec/rails/example/controller_example_group.rb, line 168
          def render(*args)
            return super if Hash === args.last && args.last[:inline]
            @_rendered ? record_render(args[0]) : super
          end
render_file (*args)
[show source]
# File lib/spec/rails/example/controller_example_group.rb, line 158
          def render_file(*args)
            @first_render ||= args[0] unless args[0] =~ /^layouts/
          end