Skip to content

Instantly share code, notes, and snippets.

View josemrb's full-sized avatar

Jose R. josemrb

View GitHub Profile

Keybase proof

I hereby claim:

  • I am josemrb on github.
  • I am josemrb (https://keybase.io/josemrb) on keybase.
  • I have a public key whose fingerprint is F3A8 4717 141E A61E 634B FA93 473E 57E5 EDC6 CDC8

To claim this, I am signing this object:

describe ApiJob, type: :job do
include ActiveJob::TestHelper
subject(:job) { described_class.perform_later() }
it 'handles status 429' do
allow(ApiClient).to receive(:make_request).and_raise(RestClient::RequestFailed)
perform_enqueued_jobs do
expect_any_instance_of(described_class).to receive(:retry_job).with(wait: 15.seconds)
@josemrb
josemrb / release.Dockerfile
Created October 15, 2020 02:08 — forked from kyleVsteger/release.Dockerfile
Multistage Elixir 1.11 Phoenix Live View Release Dockerfile
ARG ALPINE_VERSION=3.12.0
FROM hexpm/elixir:1.11.0-erlang-23.1.1-alpine-3.12.0 as builder
ARG APP_VSN="1.0.0"
# Replace `your_app` with your otp application name.
ENV APP_NAME=your_app \
APP_VSN=${APP_VSN} \
MIX_ENV=prod