Skip to content

Instantly share code, notes, and snippets.

@jsmestad
Created September 14, 2010 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsmestad/578543 to your computer and use it in GitHub Desktop.
Save jsmestad/578543 to your computer and use it in GitHub Desktop.
Fabricator(:database) do
name 'testdb'
username 'testdbuser'
password 'testdb'
instance!
end
subject { Fabricate(:database) }
p subject.inspect
"#<Database id: nil, instance_id: 141, username: \"testdbuser\", password: \"testdb\", name: \"testdb\", created_at: nil, updated_at: nil, deleted_at: nil>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment