@tgxworld I went through this already. I have surrounded my tests with vcr cassette.
The problem is say I set my
github_pass:'abcde' in secrets.yml, which is my original github password and run the tests. Tests will pass and send the post request to create an issue. Afterwards, whenever I run the tests post request won't be created and just the recorded cassette will pass the tests. But I can't keep my password in test environment and I just set it arbitary
github_pass:'12345'. Now when I run the tests vcr will give me
VCR::Errors::UnhandledHTTPRequestError: because the post request got changed and it won't just play the recording again. This is what is happening here,
Rails.application.secrets.github_password fetches different password and vcr can't handle it.
@prathamesh As far as I understand from that link we can set environment variables in travis. We can set github api and encrypted password in either repository settings or .travis.yml file. Not sure, but I think that should work