Skip to content

Instantly share code, notes, and snippets.


Gary S. Weaver garysweaver

  • Raleigh, NC, USA, Earth
View GitHub Profile
garysweaver / model_and_factory_integrity_test.rb
Last active Aug 29, 2015
Model and factory_girl factory validation
View model_and_factory_integrity_test.rb
# A stripped down version of a test I wrote to check integrity of models and factories.
# Needs cleanup. Just providing as example for a comment in an FG issue.
require 'test_helper'
# Assumes using minitest with Ruby 2.2 and:
# gem 'factory_girl_rails', '~> 4.4.0'
# gem 'factory_girl_test_monitor', '~> 0.0.2'
# gem 'fuzzy_match', '~> 2.0.4'