```ruby
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
```

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