[英]Rails/Rspec specific test case under 'development' environment for workaround
I normally run RSpec with test
environment with CircleCI. 我通常使用CircleCI在
test
环境中运行RSpec。
Is there any way to run specific test case under development
environment for workaround. 有什么方法可以在
development
环境下运行特定的测试用例来解决。
PS I found some issue on rails-spec which acting up under test environment. PS我发现在rails-spec上的一些问题,该问题在测试环境下起作用。
您可以使用allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new("development"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.