Skip to content

Instantly share code, notes, and snippets.

@chumpy
chumpy / custom_formatter.rb
Created January 7, 2021 19:37 — forked from mcoms/custom_formatter.rb
When you're having a bad day and just want to skip every failing RSpec test
# frozen_string_literal: true
class CustomFormatter
RSpec::Core::Formatters.register self, :example_failed
def initialize(output)
@output = output
end
def example_failed(notification)
@chumpy
chumpy / heroku_data_transfer
Last active October 12, 2015 15:28 — forked from nhocki/gist:1095522
Transfer data from production to staging on Heroku
heroku addons:add pgbackups --remote staging
heroku addons:add pgbackups --remote production
heroku pgbackups:capture --remote production
heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging
@chumpy
chumpy / capybara_cheat_sheet.md
Created October 23, 2012 22:46 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet

Capybara Cheat Sheet

Navigating

  visit('/projects')
  visit(post_comments_path(post))