Skip to content

Instantly share code, notes, and snippets.

@dangalipo
Created March 26, 2015 01:00
Show Gist options
  • Save dangalipo/b77f04a02101a9686c83 to your computer and use it in GitHub Desktop.
Save dangalipo/b77f04a02101a9686c83 to your computer and use it in GitHub Desktop.
openstruct factories
require "ostruct"
FactoryGirl.define do
factory :foo do
bar { "moo" }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment