Permalink
Browse files

Increase price of T-Shirt in 'custom products' shared context

This is because it was causing randomly failing builds, like this:
http://travis-ci.org/#!/spree/spree/jobs/1406098.

What happens is that because the Tote, Stein and T-Shirt all fall within
the $15-18 price range, you would get three products returned. The per
page on this test is set to two, and so *sometimes* you'd get the two
you were expecting, other times you would get the Stein included and not
the T-Shirt or the Tote.

\o/
  • Loading branch information...
radar committed May 23, 2012
1 parent 32586ed commit 806396f8edd1c97ed38aa6306aa3b504105446ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/spec/spec_helper.rb
View
@@ -75,7 +75,7 @@
rails_taxon = FactoryGirl.create(:taxon, :name => 'Ruby on Rails', :parent_id => root.id)
ruby_taxon = FactoryGirl.create(:taxon, :name => 'Ruby', :parent_id => root.id)
- FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Ringer T-Shirt', :price => '17.99', :taxons => [rails_taxon, clothing_taxon])
+ FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Ringer T-Shirt', :price => '19.99', :taxons => [rails_taxon, clothing_taxon])
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Mug', :price => '13.99', :taxons => [rails_taxon, mugs_taxon])
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Tote', :price => '15.99', :taxons => [rails_taxon, bags_taxon])
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Bag', :price => '22.99', :taxons => [rails_taxon, bags_taxon])

0 comments on commit 806396f

Please sign in to comment.