I hereby claim:
- I am alexford on github.
- I am alexford (https://keybase.io/alexford) on keybase.
- I have a public key ASDmBLpFcciDokPbMfbJHmY0sFtXu8MayH7fFOqI6LzpZQo
To claim this, I am signing this object:
| name: CI | |
| on: [push] | |
| jobs: | |
| rspec: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ruby:2.6.5 |
I hereby claim:
To claim this, I am signing this object:
| require 'rails_helper' | |
| RSpec.describe 'Mocking specific instance' do | |
| let!(:student_to_stub) { create_list(:student, 3).first } | |
| let(:stubbed_name) { junk } | |
| before do | |
| stub_model(Student, :first_name, { id: student_to_stub.id }, stubbed_name) | |
| end |
| require 'twilio-ruby' #twilio-ruby gem | |
| account_sid = 'your account SID' | |
| account_token = 'your account auth token' | |
| @client = Twilio::REST::Client.new account_sid, account_token | |
| recordings = @client.recordings.list | |
| puts "Total recordings: #{recordings.total}" | |
| recordings_remaining = recordings.total |
| <strong>Branch: </strong><?=shell_exec('git rev-parse --abbrev-ref HEAD')?><br/> | |
| <strong>Commit: </strong><?=shell_exec("git log -1 --pretty=format:'%h - %s (%cn, %cr)' --abbrev-commit")?> |