In the Extreme Testing presentation, I have a slide with assert_select examples, some of them lifted from the assert_select cheat sheet. All fine and dandy, except that this
assert_select "form[action=?]", url_for( :action => 'foo' ) just doesn’t work. url_for is a method of the controller, not the ControllerTest class.
So in order to overcome that limitation, you’d need to
assert_select "form[action=?]", @controller.url_for( :action => 'foo' ) which doesn’t throw an error, but doesn’t work either, because url_for insists on adding https://test. ...