A stupid RSpec formatter that prints FFFUUU instead of FFFFF. Heh.
Throw it in a file and run your specs like this:
$ rspec -r path/to/fffuuu_formatter.rb -f FffuuuFormatter spec/
class Alert < ActiveRecord::Base | |
belongs_to :alertable, :polymorphic => true | |
end | |
class Region < ActiveRecord::Base | |
has_many :alerts, :as => :alertable | |
end | |
upstream myapp_puma { | |
server unix:/tmp/myapp_puma.sock fail_timeout=0; | |
} | |
# for redirecting to https version of the site | |
server { | |
listen 80; | |
rewrite ^(.*) https://$host$1 permanent; | |
} | |
#!/usr/bin/env ruby | |
require 'ruby-jmeter' | |
test do | |
defaults domain: 'beta.stevegrossi.com' | |
cookies clear_each_iteration: true |
require 'capybara' | |
require 'capybara/dsl' | |
require 'browsermob/proxy' | |
require 'selenium-webdriver' | |
include Capybara::DSL | |
# Download browsermob-proxy. | |
# Set JAVA_HOME for browsermob proxy |
aws_ecr_curl() { | |
login_cmd=$(aws ecr get-login) | |
username=$(echo "$login_cmd" | cut -d " " -f 4) | |
password=$(echo "$login_cmd" | cut -d " " -f 6) | |
endpoint=$(echo "$login_cmd" | cut -d " " -f 9) | |
args=("$@") | |
args_length=${#args[@]} | |
args_last=${args[$args_length-1]} | |
unset 'args[${args_length}-1]' |
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |