| Module | RSpec::Rails::ViewExampleGroup::InstanceMethods |
| In: |
lib/rspec/rails/example/view_example_group.rb
|
Delegates to ActionView::Base#render, so see documentation on that for more info.
The only addition is that you can call render with no arguments, and RSpec will pass the top level description to render:
describe "widgets/new.html.erb" do
it "shows all the widgets" do
render # => view.render(:file => "widgets/new.html.erb")
...
end
end