mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 01:10:39 -07:00
Set up bullet gem. Implement bullet gem suggestions.
This commit is contained in:
parent
3408ecd749
commit
5a8d032dd0
10 changed files with 39 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue