Set up bullet gem. Implement bullet gem suggestions.

This commit is contained in:
Nelson Jovel 2022-01-07 15:37:32 +01:00
parent 3408ecd749
commit 5a8d032dd0
10 changed files with 39 additions and 17 deletions

View file

@ -2,10 +2,10 @@ require 'rails_helper'
describe CategoryPresenter do
let(:category_presenter) do
subcategory1 = Subcategory.new(name: 'A subcategory', subcategory_id: '1')
subcategory2 = Subcategory.new(name: 'Another subcategory', subcategory_id: '2')
subcategory1 = Subcategory.create(name: 'A subcategory', subcategory_id: '1')
subcategory2 = Subcategory.create(name: 'Another subcategory', subcategory_id: '2')
category = Category.new(name: 'Some Category', subcategories: [subcategory1, subcategory2],
category = Category.create(name: 'Some Category', subcategories: [subcategory1, subcategory2],
description: 'A description for some Category', short_description: 'A short description for some Category', category_id: '1')
return CategoryPresenter.new(category: category)
end