Skip to content

Instantly share code, notes, and snippets.

@metalelf0
Created June 19, 2011 08:50
# person.rb
validates_presence_of :address
# blueprints.rb
Person.blueprint do
name { "John" }
surname { "Doe" }
address { Address.make }
end
# person_spec.rb
it "builds a valid person with machinist" do
Person.make.should be_valid
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment