mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
correct specs
This commit is contained in:
@@ -16,7 +16,7 @@ RSpec.describe "Managing custom emojis" do
|
|||||||
name: 'test',
|
name: 'test',
|
||||||
file: fixture_file_upload("#{Rails.root}/spec/fixtures/images/fake.jpg")
|
file: fixture_file_upload("#{Rails.root}/spec/fixtures/images/fake.jpg")
|
||||||
})
|
})
|
||||||
end.first
|
end.find{|m| m.channel == "/uploads/emoji"}
|
||||||
|
|
||||||
expect(message.channel).to eq("/uploads/emoji")
|
expect(message.channel).to eq("/uploads/emoji")
|
||||||
expect(message.data["errors"]).to eq([I18n.t('upload.images.size_not_found')])
|
expect(message.data["errors"]).to eq([I18n.t('upload.images.size_not_found')])
|
||||||
@@ -32,7 +32,7 @@ RSpec.describe "Managing custom emojis" do
|
|||||||
name: 'test',
|
name: 'test',
|
||||||
file: fixture_file_upload("#{Rails.root}/spec/fixtures/images/logo.png")
|
file: fixture_file_upload("#{Rails.root}/spec/fixtures/images/logo.png")
|
||||||
})
|
})
|
||||||
end.first
|
end.find{|m| m.channel == "/uploads/emoji"}
|
||||||
|
|
||||||
expect(message.channel).to eq("/uploads/emoji")
|
expect(message.channel).to eq("/uploads/emoji")
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ RSpec.describe "Managing custom emojis" do
|
|||||||
name: 'test',
|
name: 'test',
|
||||||
file: fixture_file_upload("#{Rails.root}/spec/fixtures/images/logo.png")
|
file: fixture_file_upload("#{Rails.root}/spec/fixtures/images/logo.png")
|
||||||
})
|
})
|
||||||
end.first
|
end.find{|m| m.channel == "/uploads/emoji"}
|
||||||
|
|
||||||
custom_emoji = CustomEmoji.last
|
custom_emoji = CustomEmoji.last
|
||||||
upload = custom_emoji.upload
|
upload = custom_emoji.upload
|
||||||
|
|||||||
Reference in New Issue
Block a user