improve test setup with factory bot

This commit is contained in:
João Geonizeli
2021-08-14 11:58:51 -03:00
parent 51a493b327
commit 97c6f28b03
10 changed files with 176 additions and 16 deletions

View File

@@ -60,8 +60,6 @@ GEM
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
administrate (0.16.0)
actionpack (>= 5.0)
actionview (>= 5.0)
@@ -85,14 +83,6 @@ GEM
msgpack (~> 1.0)
builder (3.2.4)
byebug (11.1.3)
capybara (3.35.3)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
coderay (1.1.3)
concurrent-ruby (1.1.9)
crass (1.0.6)
@@ -114,6 +104,13 @@ GEM
enumerize (2.4.0)
activesupport (>= 3.2)
erubi (1.10.0)
factory_bot (6.2.0)
activesupport (>= 5.0.0)
factory_bot_rails (6.2.0)
factory_bot (~> 6.2.0)
railties (>= 5.0.0)
faker (2.18.0)
i18n (>= 1.6, < 2)
ffi (1.15.3)
globalid (0.5.2)
activesupport (>= 5.0)
@@ -182,7 +179,6 @@ GEM
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
public_suffix (4.0.6)
puma (5.4.0)
nio4r (~> 2.0)
pundit (2.1.0)
@@ -318,8 +314,6 @@ GEM
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.4.2)
PLATFORMS
@@ -330,11 +324,12 @@ DEPENDENCIES
administrate-field-active_storage
annotate
bootsnap (>= 1.4.4)
capybara
devise
devise-i18n
dotenv-rails
enumerize
factory_bot_rails (~> 6.2)
faker (~> 2.18)
graphql
graphql_playground-rails
image_processing (~> 1.12)