Sha256: f50af4c9ee5eea1285992db17a7edceccec34e93db10d776cfd9fa568790f6a6

Contents?: true

Size: 644 Bytes

Versions: 42

Compression:

Stored size: 644 Bytes

Contents

class RenderSpecController < ApplicationController
  set_view_path File.join(File.dirname(__FILE__), "..", "views")
  
  def some_action
    respond_to do |format|
      format.html
      format.js
    end
  end
  
  def action_which_renders_template_from_other_controller
    render :template => 'controller_spec/action_with_template'
  end
  
  def text_action
    render :text => "this is the text for this action"
  end
  
  def action_with_partial
    render :partial => "a_partial"
  end
  
  def action_that_renders_nothing
    render :nothing => true
  end
  
  def action_with_alternate_layout
    render :layout => 'simple'
  end
end

Version data entries

42 entries across 42 versions & 7 rubygems

Version Path
dchelimsky-rspec-rails-1.1.10 spec_resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11.1 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11.2 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11.3 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11.4 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11.5 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11.6 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11.7 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.11 spec_resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.12 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.6 spec_resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.7 spec_resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.8 spec_resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.9 spec_resources/controllers/render_spec_controller.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec-rails/spec_resources/controllers/render_spec_controller.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec-rails/spec_resources/controllers/render_spec_controller.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec-rails/spec_resources/controllers/render_spec_controller.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec-rails/spec_resources/controllers/render_spec_controller.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb