Guest User

Untitled

a guest
Jun 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. ## line 26 fails
  2. # undefined method `should_set_the_flash' for QaDocsControllerTest:Class # (NoMethodError)
  3.  
  4. require 'test_helper'
  5.  
  6. class QaDocsControllerTest < ActionController::TestCase
  7.  
  8. context "on GET to :index" do
  9. setup do
  10. get :index
  11. end
  12.  
  13. should_assign_to :files
  14. should_respond_with :success
  15. should_render_template :index
  16. end
  17.  
  18. context "on GET to :show with no filename supplied" do
  19.  
  20. context "with filename supplied" do
  21. setup { get :show, :filename => 'foo.txt' }
  22.  
  23. should_respond_with :success
  24. end
  25.  
  26. context "with no filename supplied" do
  27. setup { get :show }
  28.  
  29. should_set_the_flash
  30. should_respond_with :redirect
  31. end
  32.  
  33.  
  34. end
  35.  
  36. end
Add Comment
Please, Sign In to add comment