Skip to content

Instantly share code, notes, and snippets.

@hyperbolic-motion
Created April 22, 2012 05:18
Show Gist options
  • Save hyperbolic-motion/2456238 to your computer and use it in GitHub Desktop.
Save hyperbolic-motion/2456238 to your computer and use it in GitHub Desktop.
Test: add factory_girl syntax methods to test case
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
# fixtures :all
# Shortcut for Factory girl
include FactoryGirl::Syntax::Methods
# Add more helper methods to be used by all tests here...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment