Skip to content

Instantly share code, notes, and snippets.

@rodrigodealer
Created January 22, 2011 17:21
Show Gist options
  • Save rodrigodealer/791270 to your computer and use it in GitHub Desktop.
Save rodrigodealer/791270 to your computer and use it in GitHub Desktop.
Adicionar no env.rb
Before do
require 'factory_girl'
Dir.glob(File.join(File.dirname(__FILE__), '../../spec/factories/*.rb')).each {|f| require f }
Factory.factories.keys.each {|factory| Factory(factory) }
end
@rodrigodealer
Copy link
Author

Factory.define :cargo do |f|
f.nome "Gerente"
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment