Skip to content

Instantly share code, notes, and snippets.

View garysweaver's full-sized avatar

Gary S. Weaver garysweaver

  • Raleigh, NC, USA, Earth
View GitHub Profile
@garysweaver
garysweaver / model_and_factory_integrity_test.rb
Last active August 29, 2015 13:56
Model and factory_girl factory validation
# 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'