Skip to content

Instantly share code, notes, and snippets.

@dtrasbo
Created June 1, 2010 11:27
Show Gist options
  • Save dtrasbo/420824 to your computer and use it in GitHub Desktop.
Save dtrasbo/420824 to your computer and use it in GitHub Desktop.
# This:
require 'rails/generators'
Rails::Generators.fallbacks[:shoulda] = :test_unit
# and this:
config.generators do |g|
g.fallbacks[:shoulda] = :test_unit
end
# has the same effect because the config.generators block basically delegates to Rails::Generators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment