You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: products_integration_test.rb
    path of file: ./repos/workarea/storefront/test/integration/workarea/storefront
    
    the code of the file until where you have to start completion: require 'test_helper'

module Workarea
  module Storefront
    class ProductsIntegrationTest < Workarea::IntegrationTest
      def test_does_not_show_an_inactive_product
        assert_raise InvalidDisplay do
          get storefront.product_path(create_product(active: false))
          assert(resp
    
      def test_rendering_via_params
        category = create_category
        product = create_product

        Workarea.config.product_templates.each do |template|
          product.update_attributes!(template: template)

          get storefront.product_path(product, via: category.to_gid_param)
          assert_select(
            'form.product-details__add-to-cart-form input[name="via"][value=?]',
            category.to_gid_param
          )
        end
      end