Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## line 26 fails
- # undefined method `should_set_the_flash' for QaDocsControllerTest:Class # (NoMethodError)
- require 'test_helper'
- class QaDocsControllerTest < ActionController::TestCase
- context "on GET to :index" do
- setup do
- get :index
- end
- should_assign_to :files
- should_respond_with :success
- should_render_template :index
- end
- context "on GET to :show with no filename supplied" do
- context "with filename supplied" do
- setup { get :show, :filename => 'foo.txt' }
- should_respond_with :success
- end
- context "with no filename supplied" do
- setup { get :show }
- should_set_the_flash
- should_respond_with :redirect
- end
- end
- end
Add Comment
Please, Sign In to add comment