This file contains hidden or 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 'irb/completion' | |
require 'rubygems' | |
# Autoload all gems in the Gemfile default set | |
require 'bundler/setup' | |
Bundler.require(:default) | |
# TODO: find a valid editor if it's not set and config it's 'edit at line' and terminal req'ts | |
# Make sure $EDITOR is set | |
ENV['EDITOR'] = 'code' unless ENV['EDITOR'] |
This file contains hidden or 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
# RSpec matcher to spec delegations. | |
# | |
# Usage: | |
# | |
# describe Post do | |
# it { should delegate(:name).to(:author).with_prefix } # post.author_name | |
# it { should delegate(:day).to(:created_at) } | |
# it { should delegate(:month, :year).to(:created_at) } | |
# end | |
# |