diff --git a/.rubocop.yml b/.rubocop.yml index 82791a5..5f4f67e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -11,7 +11,7 @@ AllCops: DisplayCopNames: true Layout/LineLength: - Max: 120 + Max: 125 Metrics/MethodLength: Include: - 'app/controllers/*' @@ -59,4 +59,4 @@ Style/HashEachMethods: Style/HashTransformKeys: Enabled: false Style/HashTransformValues: - Enabled: false \ No newline at end of file + Enabled: false diff --git a/Gemfile b/Gemfile index 732605a..8953448 100644 --- a/Gemfile +++ b/Gemfile @@ -3,6 +3,7 @@ source 'https://rubygems.org' ruby '3.2.2' # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" +gem 'faker', '~> 2.20' gem 'rails', '~> 7.1.1' gem 'rspec-rails' gem 'rswag' diff --git a/Gemfile.lock b/Gemfile.lock index 6a6f139..bed5804 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -115,6 +115,8 @@ GEM concurrent-ruby (~> 1.0) zeitwerk (~> 2.6) erubi (1.12.0) + faker (2.23.0) + i18n (>= 1.8.11, < 2) globalid (1.2.1) activesupport (>= 6.1) i18n (1.14.1) @@ -276,6 +278,7 @@ DEPENDENCIES devise devise-jwt dotenv-rails + faker (~> 2.20) jsonapi-serializer pg (~> 1.1) puma (>= 5.0) diff --git a/README.md b/README.md index 613f093..dde95b6 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,12 @@ To run the project, you will need to execute: ```sh rails credentials:edit + rails db:create + + rails db:migrate + + rails db:seed + rails s ``` @@ -168,7 +174,7 @@ To run the project, you will need to execute: To run tests, run the following command: ```sh - Rspec spec or bundle exec rspec spec + rspec spec/model/ ```