From d5013ad0d2640693af534db47f891ca4fbbf5a4c Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 7 Sep 2016 15:28:28 +0100 Subject: [PATCH] Add FactoryGirl --- Gemfile | 1 + Gemfile.lock | 6 ++++++ test/test_helper.rb | 2 ++ 3 files changed, 9 insertions(+) diff --git a/Gemfile b/Gemfile index 07bb60c68..27f457d03 100644 --- a/Gemfile +++ b/Gemfile @@ -109,5 +109,6 @@ group :development, :test do gem "jshint" gem "konacha" gem "poltergeist" + gem "factory_girl_rails" gem "coveralls", :require => false end diff --git a/Gemfile.lock b/Gemfile.lock index d8c141f69..5a9456b35 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -83,6 +83,11 @@ GEM erubis (2.7.0) execjs (2.7.0) exifr (1.2.4) + factory_girl (4.7.0) + activesupport (>= 3.0.0) + factory_girl_rails (4.7.0) + factory_girl (~> 4.7.0) + railties (>= 3.0.0) faraday (0.9.2) multipart-post (>= 1.2, < 3) fspath (2.1.1) @@ -316,6 +321,7 @@ DEPENDENCIES dalli deadlock_retry (>= 1.2.0) dynamic_form + factory_girl_rails faraday htmlentities http_accept_language (~> 2.0.0) diff --git a/test/test_helper.rb b/test/test_helper.rb index 0baf92270..419ea1806 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,6 +8,8 @@ load "composite_primary_keys/fixtures.rb" module ActiveSupport class TestCase + include FactoryGirl::Syntax::Methods + # Load standard fixtures needed to test API methods def self.api_fixtures # print "setting up the api_fixtures" -- 2.39.5