diff --git a/spec/factories.rb b/spec/factories.rb index c798999134..64b95cb26d 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -42,7 +42,7 @@ FactoryGirl.define do # Products with images [ex1, ex2].each do |exchange| product = create(:product, supplier: exchange.sender) - image = File.open(File.expand_path('../../app/assets/images/logo.jpg', __FILE__)) + image = File.open(File.expand_path('../../app/assets/images/logo-white.png', __FILE__)) Spree::Image.create({:viewable_id => product.master.id, :viewable_type => 'Spree::Variant', :alt => "position 1", :attachment => image, :position => 1}) exchange.variants << product.master diff --git a/spec/features/admin/products_spec.rb b/spec/features/admin/products_spec.rb index 740de12045..172e87fb1e 100644 --- a/spec/features/admin/products_spec.rb +++ b/spec/features/admin/products_spec.rb @@ -201,7 +201,7 @@ feature %q{ scenario "deleting product images", js: true do product = create(:simple_product, supplier: @supplier2) - image = File.open(File.expand_path('../../../../app/assets/images/logo.jpg', __FILE__)) + image = File.open(File.expand_path('../../../../app/assets/images/logo-white.png', __FILE__)) Spree::Image.create({:viewable_id => product.master.id, :viewable_type => 'Spree::Variant', :alt => "position 1", :attachment => image, :position => 1}) visit spree.admin_product_images_path(product) diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/features/consumer/shopping/shopping_spec.rb index d540280656..b8e7c707cd 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/features/consumer/shopping/shopping_spec.rb @@ -21,7 +21,7 @@ feature "As a consumer I want to shop with a distributor", js: true do it "shows a distributor with images" do # Given the distributor has a logo - distributor.logo = File.new(Rails.root + 'app/assets/images/logo.jpg') + distributor.logo = File.new(Rails.root + 'app/assets/images/logo-white.png') distributor.save! # Then we should see the distributor and its logo diff --git a/spec/models/enterprise_group_spec.rb b/spec/models/enterprise_group_spec.rb index ceca13b13b..8a4fdd9fd7 100644 --- a/spec/models/enterprise_group_spec.rb +++ b/spec/models/enterprise_group_spec.rb @@ -30,7 +30,7 @@ describe EnterpriseGroup do # it "can have an image" do # eg = create(:enterprise_group) - # image_file = File.open(File.expand_path('../../../app/assets/images/logo.jpg', __FILE__)) + # image_file = File.open(File.expand_path('../../../app/assets/images/logo-white.png', __FILE__)) # image = Spree::Image.create(viewable_id: eg.id, viewable_type: 'EnterpriseGroup', attachment: image_file) # eg.reload.image.should == image # end