From d959ee2358bc56a69b2c4bf0728e356dad10413a Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:37:08 +0100 Subject: [PATCH] Fix rubocop warnings --- spec/controllers/api/v0/products_controller_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/controllers/api/v0/products_controller_spec.rb b/spec/controllers/api/v0/products_controller_spec.rb index 90480a6f2e..4abba9f3bd 100644 --- a/spec/controllers/api/v0/products_controller_spec.rb +++ b/spec/controllers/api/v0/products_controller_spec.rb @@ -35,7 +35,8 @@ describe Api::V0::ProductsController, type: :controller do it "gets a single product" do product.create_image!(attachment:) - product.variants.create!(unit_value: "1", unit_description: "thing", price: 1, primary_taxon: taxon) + product.variants.create!(unit_value: "1", unit_description: "thing", price: 1, + primary_taxon: taxon) product.variants.first.images.create!(attachment:) product.set_property("spree", "rocks") @@ -267,7 +268,8 @@ describe Api::V0::ProductsController, type: :controller do end it "filters results by product category" do - api_get :bulk_products, { page: 1, per_page: 15, q: { variants_primary_taxon_id_eq: taxon.id } }, + api_get :bulk_products, + { page: 1, per_page: 15, q: { variants_primary_taxon_id_eq: taxon.id } }, format: :json expect(returned_product_ids).to eq [product3.id, product2.id] end