Ruby on rails 轨道&x2B;Rspec:我在哪里测试应用程序常量?

Ruby on rails 轨道&x2B;Rspec:我在哪里测试应用程序常量?,ruby-on-rails,rspec,Ruby On Rails,Rspec,所以我知道单元测试在spec/models中,但是初始化器和YAML文件中定义的常量在哪里呢 例如:这在我的ups_api.yml文件中: testing_server: confirm_url: https://wwwcie.ups.com/ups.app/xml/ShipConfirm accept_url: https://wwwcie.ups.com/ups.app/xml/ShipAccept 这将加载到我的config/environment.rb中。在哪里/如何测试这些常

所以我知道单元测试在
spec/models
中,但是初始化器和YAML文件中定义的常量在哪里呢

例如:这在我的ups_api.yml文件中:

testing_server:
  confirm_url: https://wwwcie.ups.com/ups.app/xml/ShipConfirm
  accept_url: https://wwwcie.ups.com/ups.app/xml/ShipAccept

这将加载到我的config/environment.rb中。在哪里/如何测试这些常量的值

我认为测试这种东西没有任何价值。您编写测试以确保代码的正确行为。配置设置不涉及任何类型的逻辑