Skip to content

Instantly share code, notes, and snippets.

View LimeBlast's full-sized avatar
📈
Setting my goals for 2019

Daniel Hollands LimeBlast

📈
Setting my goals for 2019
View GitHub Profile
@LimeBlast
LimeBlast / activation_email_spec.rb
Last active August 29, 2015 14:18 — forked from tuomasj/activation_email_spec.rb
`have_link_ends_with` matcher
require 'spec_helper'
describe "Activation Email" do
it "confirms the email when user clicks the confirmation link on activation email" do
register_new_user("john.smith@example.com", "adobe password", "adobe password")
activation_token = User.last.activation_code
expect( open_last_email.default_part_body ).to have_link_with_ends_with(activation_token)
visit activation_path(activation_token)
expect(page).to have_content( "Your email has been confirmed.")
end
@LimeBlast
LimeBlast / .gitconfig
Created April 27, 2012 14:18 — forked from lukearmstrong/.gitconfig
My settings, including aliases and colour settings.
[alias]
addr = add -A
ci = commit
co = checkout
lg = log --graph --decorate --branches --abbrev-commit
st = status -sb
ds = diff -- staged
graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
[color]
ui = true