Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 3月 18, 2024
    • Dylan Griffith's avatar
      Improve stub_env handling of unset keys raise error on fetch · 2a8aefca
      Dylan Griffith 创作于
      In real usage if you call `ENV.fetch('NON_EXISTENT_KEY')` it will raise
      a `KeyError`. But our previously implementation of of `stub_env` with
      `nil` is causing it to return `nil` rather than raising an error. This
      can cause us to write tests that don't match the actual production
      behaviour. We might forget to rescue the exception in a certain place or
      we also may not be able to write a test case for the expected behaviour.
      
      ```
      irb(main):001> ENV.fetch('NON_EXISTENT_KEY')
      (irb):1:in `fetch': key not found: "NON_EXISTENT_KEY" (KeyError)
      
      irb(main):002> ENV['NON_EXISTENT_KEY'] = nil
      => nil
      
      irb(main):003> ENV.fetch('NON_EXISTENT_KEY')
      (irb):3:in `fetch': key not found: "NON_EXISTENT_KEY" (KeyError)
      ```
      2a8aefca
  2. 11月 22, 2023
  3. 10月 20, 2023
  4. 8月 02, 2023
  5. 7月 28, 2023
  6. 7月 27, 2023
  7. 7月 06, 2023
  8. 7月 05, 2023
  9. 6月 30, 2023
  10. 6月 27, 2023
  11. 6月 26, 2023
  12. 6月 20, 2023
  13. 6月 19, 2023
    • Kamil Trzciński's avatar
      Add `gitlab-rspec` gem · dbafaa08
      Kamil Trzciński 创作于
      This gem is supposed to contain all source
      code required to configure GitLab specific
      rspec environment.
      
      Changelog: added
      dbafaa08
加载中