FactoryGirl.define do
  factory :image, class: Spree::Image do
    attachment URI.parse('http://upload.wikimedia.org/wikipedia/en/c/c0/Les_Horribles_Cernettes_in_1992.jpg')
  end
end

FactoryGirl.define do
  factory :image, class: Spree::Image do
    attachment { File.new(Spree::Core::Engine.root + "spec/fixtures" + 'thinking-cat.jpg') }
  end
end

Use local fixture for Image factory.
Use local fixture for Image factory.

  * faster tests
  * no internet connection needed

Fixes #6342
