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/b9db7aa6-34ef-4db6-bd53-e80f92b12b77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to