about summary refs log tree commit diff
path: root/spec/fabricators/custom_emoji_fabricator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fabricators/custom_emoji_fabricator.rb')
-rw-r--r--spec/fabricators/custom_emoji_fabricator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/fabricators/custom_emoji_fabricator.rb b/spec/fabricators/custom_emoji_fabricator.rb
index 298a50b4b..fa570eec6 100644
--- a/spec/fabricators/custom_emoji_fabricator.rb
+++ b/spec/fabricators/custom_emoji_fabricator.rb
@@ -3,5 +3,5 @@
 Fabricator(:custom_emoji) do
   shortcode 'coolcat'
   domain    nil
-  image     { File.open(Rails.root.join('spec', 'fixtures', 'files', 'emojo.png')) }
+  image     { Rails.root.join('spec', 'fixtures', 'files', 'emojo.png').open }
 end