- macOS 10.14
- rbenv
- Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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")?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
rspec: | |
runs-on: ubuntu-latest | |
container: | |
image: ruby:2.6.5 |