diff --git a/test/functional/phases_controller_test.rb b/test/functional/phases_controller_test.rb index 06257c1..bc8cdb6 100644 --- a/test/functional/phases_controller_test.rb +++ b/test/functional/phases_controller_test.rb @@ -58,9 +58,6 @@ get edit_plan_phase_path(@plan, @template.phases.first) assert_unauthorized_redirect_to_root_path - -puts "SIGNING IN AS: #{@user.inspect}" - sign_in @user # TODO: Why does the policy check fail when @user is the creator and owner of @plan!? @@ -171,6 +168,12 @@ assert_unauthorized_redirect_to_root_path sign_in @user + + + + puts "SIGNING IN AS: #{@user.inspect}" + + # Valid save put admin_update_phase_path(@template.phases.first), {phase: params}