Skip to content

Commit

Permalink
Merge pull request akabiru#19 from hibaAkroush/master
Browse files Browse the repository at this point in the history
changed factory girl to factory bot
  • Loading branch information
Austin Kabiru authored Feb 25, 2018
2 parents adb4a6f + 75d571c commit d8c7093
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ group :development, :test do
end

group :test do
gem "factory_girl_rails", "~> 4.0"
gem "factory_bot_rails", "~> 4.0"
gem 'shoulda-matchers', '~> 3.1'
gem 'faker'
gem 'database_cleaner'
Expand Down
18 changes: 13 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ GEM
tzinfo (~> 1.1)
arel (7.1.4)
bcrypt (3.1.11)
bcrypt (3.1.11-x86-mingw32)
builder (3.2.3)
case_transform (0.2)
activesupport
Expand All @@ -61,14 +62,15 @@ GEM
diff-lcs (1.3)
docile (1.1.5)
erubis (2.7.0)
factory_girl (4.9.0)
factory_bot (4.8.2)
activesupport (>= 3.0.0)
factory_girl_rails (4.9.0)
factory_girl (~> 4.9.0)
factory_bot_rails (4.8.2)
factory_bot (~> 4.8.2)
railties (>= 3.0.0)
faker (1.8.7)
i18n (>= 0.7)
ffi (1.9.18)
ffi (1.9.18-x86-mingw32)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (0.9.1)
Expand All @@ -91,6 +93,8 @@ GEM
nio4r (2.2.0)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
nokogiri (1.8.1-x86-mingw32)
mini_portile2 (~> 2.3.0)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
Expand Down Expand Up @@ -164,27 +168,31 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
sqlite3 (1.3.13-x86-mingw32)
term-ansicolor (1.6.0)
tins (~> 1.0)
thor (0.19.4)
thread_safe (0.3.6)
tins (1.16.3)
tzinfo (1.2.4)
thread_safe (~> 0.1)
tzinfo-data (1.2018.3)
tzinfo (>= 1.0.0)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
will_paginate (3.1.6)

PLATFORMS
ruby
x86-mingw32

DEPENDENCIES
active_model_serializers (~> 0.10.0)
bcrypt (~> 3.1.7)
coveralls
database_cleaner
factory_girl_rails (~> 4.0)
factory_bot_rails (~> 4.0)
faker
jwt
listen (~> 3.0.5)
Expand All @@ -200,4 +208,4 @@ DEPENDENCIES
will_paginate (~> 3.1.0)

BUNDLED WITH
1.16.0
1.16.1
2 changes: 1 addition & 1 deletion spec/factories/items.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :item do
name { Faker::StarWars.character }
done false
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/todos.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :todo do
title { Faker::Lorem.word }
created_by { Faker::Number.number(10) }
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :user do
name { Faker::Name.name }
email '[email protected]'
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# instead of true.
config.use_transactional_fixtures = true

config.include FactoryGirl::Syntax::Methods
config.include FactoryBot::Syntax::Methods

config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
Expand Down

0 comments on commit d8c7093

Please sign in to comment.