Yes providing its an object

Jon Rowe
---------------------------
[email protected]
jonrowe.co.uk

On 14 March 2019 at 14:15, Olivier wrote:
> Similar to stubbing environment variable, can we stub Rails credentials, 
> something like?
>
> allow(Rails.application.credentials).to receive(:my_token).and_return('123')

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/dejalu-217-229ced9c-8bfc-4c2a-9bc2-790450b5b5db%40jonrowe.co.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to