Skip to content

Commit

Permalink
Fix rubocop warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Nov 3, 2023
1 parent b227138 commit 94aae11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions engines/dfc_provider/lib/dfc_provider/supplied_product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

module DfcProvider
class SuppliedProduct < DataFoodConsortium::Connector::SuppliedProduct
attr_accessor :spree_product_id
attr_accessor :image
attr_accessor :spree_product_id, :image

def initialize(semantic_id, spree_product_id: nil, image_url: nil, **properties)
super(semantic_id, **properties)
Expand All @@ -16,7 +15,7 @@ def initialize(semantic_id, spree_product_id: nil, image_url: nil, **properties)
end
# Temporary solution, will be replaced by "dfc_b:image" in future version of the DFC connector
registerSemanticProperty("ofn:image") do
self.image
image
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
end

it "assigns an image_url type" do
image = Spree::Image.create!(
Spree::Image.create!(
attachment: white_logo_file,
viewable_id: variant.product.id,
viewable_type: 'Spree::Product'
Expand Down

0 comments on commit 94aae11

Please sign in to comment.