module RSpec::Rails::ViewExampleGroup::InstanceMethods
def render(options={}, local_assigns={}, &block)
end
...
render # => view.render(:file => "widgets/new.html.erb")
it "shows all the widgets" do
describe "widgets/new.html.erb" do
will pass the top level description to render:
The only addition is that you can call render with no arguments, and RSpec
info.
Delegates to ActionView::Base#render, so see documentation on that for more
render({:partial => "widgets/widget.html.erb"}, {... locals ...}) do ... end
render({:partial => "widgets/widget.html.erb"}, {... locals ...})
render(:template => "widgets/new.html.erb")
render
:call-seq:
def render(options={}, local_assigns={}, &block) options = {:template => _default_file_to_render} if Hash === options and options.empty? super(options, local_assigns, &block) end