Skip to content

Instantly share code, notes, and snippets.

View queirozfcom's full-sized avatar
💪
Nobody cares, work harder

Felipe Almeida (queirozfcom) queirozfcom

💪
Nobody cares, work harder
View GitHub Profile
@queirozfcom
queirozfcom / gist:19beb0ee49c469cd8837
Created July 8, 2014 02:31
Take an already instantiated obj and make it a null_object for the duration of a single test
describe '#put_resource!' do
before(:each) do
@c = Converter.new name: 'c'
@edge_in = double(from: double(), to: @c)
@edge_out = double(from: @c, to: double())
@c.attach_edge!(@edge_out).attach_edge!(@edge_in)
end
it 'does not ping incoming edges' do
@queirozfcom
queirozfcom / gist:42877fdb2ec6dc2573df
Last active August 29, 2015 14:02
Simple Vagrantfile that can be used to set up a simple Ubuntu 12.04 LTS box with XFCE GUI.
# Simplest possible Ubuntu 12.04 box with a GUI
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise32"
config.vm.provider "virtualbox" do |vb|
# Don't boot with headless mode
vb.gui = true
# Set a name that you can remember