Skip to content

Instantly share code, notes, and snippets.

@phallstrom
phallstrom / gist:f0faf5b7c3733fa527f50723528f6de2
Created May 23, 2023 22:46
spec/support/database_cleaner.rb
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end
# The README for DatabaseCleaner suggests this should be simpler, but it
# doesn't work using their examples. This does however, so don't touch it :-)
config.around(:each) do |example|
if example.metadata[:truncation]
@phallstrom
phallstrom / README
Created November 9, 2022 16:37
sailfish
### sailfish
Sailfish is a ruby script that is meant to turn a git commit message into a
JIRA ticket and then update that commit message to reference the newly created
JIRA ticket.
To use it you will need Ruby installed and a few gems (see top of script file
itself for details).
You will also need to create `~/.sailfish` with contents similar to the following:
# DNSFilter Terms of Service
Please read these Terms and Conditions (“Terms”, “Terms and Conditions”) carefully before using the DNSFilter.com website (the “Service”) operated by DNSFilter, Inc. (“us”, “we”, or “our”).
Your access to and use of the Service is conditioned upon your acceptance of and compliance with these Terms. These Terms apply to all visitors, users and others who wish to access or use the Service.
By accessing or using the Service you agree to be bound by these Terms. If you disagree with any part of the terms then you do not have permission to access the Service.
## Communications

Keybase proof

I hereby claim:

  • I am phallstrom on github.
  • I am phallstrom (https://keybase.io/phallstrom) on keybase.
  • I have a public key ASC3MiXGUu5URjZXqKXK-yVhI-BRVXz8Qt09iRjO6k_XtQo

To claim this, I am signing this object: