Sha256: a49cc2fb35b311b9504669dbd99f22b81d00d2cd78432fe4c259924a9e82f034

Contents?: true

Size: 497 Bytes

Versions: 34

Compression:

Stored size: 497 Bytes

Contents

require 'spec_helper'

describe Spree::TaxonsHelper, :type => :helper do
  # Regression test for #4382
  it "#taxon_preview" do
    taxon = create(:taxon)
    child_taxon = create(:taxon, parent: taxon)
    product_1 = create(:product)
    product_2 = create(:product)
    product_3 = create(:product)
    taxon.products << product_1
    taxon.products << product_2
    child_taxon.products << product_3

    expect(taxon_preview(taxon.reload)).to eql([product_1, product_2, product_3])
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
solidus_core-1.1.4 spec/helpers/taxons_helper_spec.rb
solidus_core-1.0.7 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.5 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.4 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.3 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.2 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.0.10 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.1 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.0 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.0.rc4 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.0.9 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.0.rc3 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.0.rc2 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.1.0.rc1 spec/helpers/taxons_helper_spec.rb
solidus_core-1.0.6 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.0.8 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.0.7 spec/helpers/taxons_helper_spec.rb
solidus_core-1.1.3 spec/helpers/taxons_helper_spec.rb
solidus_core-1.0.5 spec/helpers/taxons_helper_spec.rb
spree_frontend-3.0.6.1 spec/helpers/taxons_helper_spec.rb