我一直有下面的错误,而我尝试运行下面的测试用例,它应该验证URL。如果需要,函数validateUrl应该为URL添加前缀“http://”。我这样做是因为我用的是API没有这个前缀: import userDetail from '../src/container/user-detail'
describe('UrlValidation',() => {
it('should be
我正在使用rails 5和devise。我正在为我的控制器编写一些单元测试,但我正在跑到一堵墙上。以下是我正在试图测试 # GET /issues/new
def new
unless user_signed_in?
redirect_to new_user_session_path
end
@issue = Issue.new(stop_one