Thanks. Yes, I would like to run rspec in a different env than test. I would like to have two env environments. The first with memory services that are either mocked or as dummy services and the other with real services responding to real requests. We spend a lot of time debugging a problem that we occurring completely outside of our code and control - it is between AWS, Shrin, Uppy and I would like to automate the process of developing and running specs that connect with real services. For this I need a new environment.
@Phil I think there is a use case for such an rspec @Joh i think I could override it. Is there an actual reason why the env should be set to "test". Something that rspec depends on? I understand that it should have a default value that is probably "test" but why is it not possible to run rspec in a different env? Thanks On Sun, 6 Dec 2020 at 12:36, Jon Rowe <m...@jonrowe.co.uk> wrote: > You can override `spec:prepare` by defining your own task with the same > name in your Rakefile, rspec-rails’s one is there to conform to the Rails > convention. > > Cheers > Jon > ---------------- > m...@jonrowe.co.uk > https://jonrowe.co.uk > > On 5 December 2020 at 19:44, Phil Pirozhkov wrote: > > > It's because it's for Rails to use, not RSpec > > What you plan is quite an untypical approach to the problem. > > Since you stub those external services in 'test' somewhere, I suggest you > stub them selectively, for all spec folders except those with your external > service integration tests. > > Introducing yet another env comes at a cost, just think about yet another > DB. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "rspec" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rspec/naE04EDa3gQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > rspec+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/dejalu-217-524d35fb-0a92-46d0-adb8-ab08509601d6%40jonrowe.co.uk > <https://groups.google.com/d/msgid/rspec/dejalu-217-524d35fb-0a92-46d0-adb8-ab08509601d6%40jonrowe.co.uk?utm_medium=email&utm_source=footer> > . > -- Axlessoft Developing solutions for engineers. Bringing 3D on the web. https://www.axlessoft.com/ -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CAJtYerG-FUxbNMR4KVTND8f7s75_ii1BDq%3DPdXsZj6-snkhpew%40mail.gmail.com.