This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'forwardable' | |
class Said | |
attr_reader :msg | |
def initialize(msg = nil) | |
@msg = (msg || '').freeze | |
end | |
def loud_enough? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |