You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought we had one, but we need to provide an example of how you can use Minitest + Nokogiri to test partials. While we're at it, we should just provide some library support for it so you can do the following:
classBoxPartialTest < NicePartials::TestCasetest"title renders like you'd expect it to"do# Returns a Nokogiri::HTML() result.body=render<<-ERB<%=render'account/shared/page',here: test,current_user: @userdo |p| %><%p.content_for:title,"Titles are great"%><%end%> ERBassert_equalbody.css('h3').text,"Titles are great"endend
The text was updated successfully, but these errors were encountered:
I thought we had one, but we need to provide an example of how you can use Minitest + Nokogiri to test partials. While we're at it, we should just provide some library support for it so you can do the following:
The text was updated successfully, but these errors were encountered: