Skip to content

Commit 8d97272

Browse files
committed
added faker and fabrication gem
1 parent 7b6020b commit 8d97272

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Gemfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ group :development, :test do
3535
gem 'database_cleaner'
3636
gem 'shoulda-matchers', '4.0.0.rc1'
3737
gem 'rails-controller-testing' # If you are using Rails 5.x
38-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
38+
gem 'fabrication'
39+
gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master'
40+
41+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
3942
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
4043
gem 'rename'
4144
end

Gemfile.lock

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
GIT
2+
remote: https://github.com/stympy/faker.git
3+
revision: d8fa7294f5410bc949e75c6d52524ed289b3a7a3
4+
branch: master
5+
specs:
6+
faker (1.9.1)
7+
i18n (>= 0.7)
8+
19
GEM
210
remote: https://rubygems.org/
311
specs:
@@ -52,6 +60,7 @@ GEM
5260
database_cleaner (1.7.0)
5361
diff-lcs (1.3)
5462
erubi (1.7.1)
63+
fabrication (2.20.1)
5564
ffi (1.9.25)
5665
globalid (0.4.1)
5766
activesupport (>= 4.2.0)
@@ -171,6 +180,8 @@ DEPENDENCIES
171180
bootsnap (>= 1.1.0)
172181
byebug
173182
database_cleaner
183+
fabrication
184+
faker!
174185
listen (>= 3.0.5, < 3.2)
175186
mysql2 (>= 0.4.4, < 0.6.0)
176187
puma (~> 3.11)

spec/rails_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This file is copied to spec/ when you run 'rails generate rspec:install'
22
require 'spec_helper'
33
require 'database_cleaner'
4+
require 'faker'
5+
46
ENV['RAILS_ENV'] ||= 'test'
57
require File.expand_path('../../config/environment', __FILE__)
68
# Prevent database truncation if the environment is production

0 commit comments

Comments
 (0)