Groups
Groups
Sign in
Groups
Groups
rspec
Conversations
About
Send feedback
Help
Is there a way to stub Rails credential key?
14 views
Skip to first unread message
Olivier
unread,
Mar 14, 2019, 10:18:36 AM
3/14/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rspec
Similar to stubbing environment variable, can we stub Rails credentials, something like?
allow(Rails.application.credentials).to receive(:my_token).and_return('123')
Jon Rowe
unread,
Mar 14, 2019, 10:23:13 AM
3/14/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rs...@googlegroups.com
Yes providing its an object
Jon Rowe
---------------------------
ma...@jonrowe.co.uk
jonrowe.co.uk
Reply all
Reply to author
Forward
0 new messages