Skip to content

Instantly share code, notes, and snippets.

@just3ws
just3ws / forwards_from_grannie.rb
Last active September 1, 2015 17:24
FW: FW: FW:
require 'forwardable'
class Said
attr_reader :msg
def initialize(msg = nil)
@msg = (msg || '').freeze
end
def loud_enough?
#!/usr/bin/env bash -x
apt-get -y update
# -------------------------------
# Based on bootstrap-ubuntu-12-04
# https://raw.github.com/fesplugas/rbenv-bootstrap/master/bin/rbenv-bootstrap-ubuntu-12-04
# Update sources:
apt-get -y update
# clear; spec spec/models/user_spec.rb -f specdoc --colour
require 'spec/spec_helper'
describe User, "add reputation via voting" do
let(:user) {User.new}
context "when starting from a brand new user" do
it "gives a user one reputation for free" do
user.reputation.should equal 1