Skip to content
  • Hugo Roque's avatar
    19dff78d
    `assert_template` no more passing with what ever string that matches. · 19dff78d
    Hugo Roque authored
    Given Im rendering an template `/layout/hello.html.erb`, assert_template was
    passing with any string that matches. This behavior allowed false passing like:
    
    	assert_template "layout"
    	assert_template "out/hello"
    
    Now the passing possibilities are:
    
    	assert_template "layout/hello"
    	assert_template "hello"
    
    fixing assert_template bug when template matches expected, but not ends with
    
    Cherry Pick Merge: Fixes issue #3849 assert_template false positive
    
    taking redundant test off
    
    prevening incorrect assert_template when rendering with repeated names in path
    
    updating CHANGELOG with bugfix: assert_template false passing
    19dff78d
    `assert_template` no more passing with what ever string that matches.
    Hugo Roque authored
    Given Im rendering an template `/layout/hello.html.erb`, assert_template was
    passing with any string that matches. This behavior allowed false passing like:
    
    	assert_template "layout"
    	assert_template "out/hello"
    
    Now the passing possibilities are:
    
    	assert_template "layout/hello"
    	assert_template "hello"
    
    fixing assert_template bug when template matches expected, but not ends with
    
    Cherry Pick Merge: Fixes issue #3849 assert_template false positive
    
    taking redundant test off
    
    prevening incorrect assert_template when rendering with repeated names in path
    
    updating CHANGELOG with bugfix: assert_template false passing
Loading