Fetch user via API in fabricate_or_use
Previously fabricate_or_use would only create a User instance with the provided username and password. This was fine when only those creds were needed (e.g., to sign on), but it's not enough in tests that need other user details, e.g., the user's name. This changes fabricate_or_use so that it fetches the user via the API, which provides access to the user's details.
显示
- qa/qa/git/repository.rb 1 个添加, 1 个删除qa/qa/git/repository.rb
- qa/qa/resource/repository/commit.rb 3 个添加, 3 个删除qa/qa/resource/repository/commit.rb
- qa/qa/resource/user.rb 2 个添加, 3 个删除qa/qa/resource/user.rb
- qa/qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb 1 个添加, 1 个删除...s/api/3_create/repository/project_archive_compare_spec.rb
- qa/qa/specs/features/browser_ui/3_create/repository/add_file_template_spec.rb 4 个添加, 2 个删除.../browser_ui/3_create/repository/add_file_template_spec.rb
- qa/spec/resource/user_spec.rb 2 个添加, 2 个删除qa/spec/resource/user_spec.rb
加载中
想要评论请 注册 或 登录