Skip to content

Commit

Permalink
fixup add spc
Browse files Browse the repository at this point in the history
  • Loading branch information
dacook committed Jun 27, 2024
1 parent 5926ede commit 70f4d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/spree/core/product_duplicator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@
# tax_category is required when products_require_tax_category
create(:variant).tap{ |v| v.update_columns(tax_category_id: nil) }
}
subject { Spree::Core::ProductDuplicator.new(variant.product) }
subject { Spree::Core::ProductDuplicator.new(variant.product).duplicate }

before { allow(Spree::Config).to receive(:products_require_tax_category).and_return(true) }

it "raises error" do
it "raises generic ActiveRecordError" do
expect{ subject }.to raise_error(ActiveRecord::ActiveRecordError)
end
end
Expand Down

0 comments on commit 70f4d48

Please sign in to comment.