Skip to content

Commit

Permalink
Marketplace: Assert the CartProduct shows the Product::Photo (#…
Browse files Browse the repository at this point in the history
…1494)

* `Marketplace`: Install `libvips` for testing `Product::Photo`s

- #1430
- #1428

- Pulled from https://github.com/libvips/ruby-vips/blob/master/.github/workflows/test.yml
  • Loading branch information
zspencer authored May 25, 2023
1 parent eb02a8e commit 1351a30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/furniture/marketplace/cart_product_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
it { is_expected.to have_content(helpers.humanized_money_with_symbol(product.price)) }
it { is_expected.to have_link(I18n.t("marketplace.cart_product_component.add")) }
it { is_expected.to have_link(I18n.t("marketplace.cart_product_component.remove")) }
it { is_expected.to have_selector("img[src*='#{product.photo.filename}']") }

context "when the product is not yet in the cart" do
let(:cart_product) { build(:marketplace_cart_product, cart: cart, product: product, quantity: 0) }
Expand Down

0 comments on commit 1351a30

Please sign in to comment.