Skip to content

Commit

Permalink
12968: fix existing specs
Browse files Browse the repository at this point in the history
- As per the new changes, unit_type change will create a new product rather than give errors.
- on bulk-update screen as well, two products can have same name with different unit_type
  • Loading branch information
chahmedejaz committed Nov 25, 2024
1 parent 3a3d729 commit 3d09ac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/product_importer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -578,11 +578,11 @@
describe "updating non-updatable fields on existing variants" do
let(:csv_data) {
CSV.generate do |csv|
csv << ["name", "producer", "category", "on_hand", "price", "units", "unit_type",
csv << ["name", "producer", "category", "on_hand", "price", "units", "variant_unit_name",
"shipping_category"]
csv << ["Beetroot", enterprise3.name, "Vegetables", "5", "3.50", "500", "Kg",
csv << ["Beetroot", enterprise3.name, "Vegetables", "5", "3.50", "500", "Half",
shipping_category.name]
csv << ["Tomato", enterprise3.name, "Vegetables", "6", "5.50", "500", "Kg",
csv << ["Tomato", enterprise3.name, "Vegetables", "6", "5.50", "500", "Half",
shipping_category.name]
end
}
Expand Down

0 comments on commit 3d09ac0

Please sign in to comment.