mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
correct specs
This commit is contained in:
parent
4ed4d77fd3
commit
4b6c49b13f
@ -16,7 +16,7 @@ RSpec.describe "Managing custom emojis" do
|
||||
name: 'test',
|
||||
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.data["errors"]).to eq([I18n.t('upload.images.size_not_found')])
|
||||
@ -32,7 +32,7 @@ RSpec.describe "Managing custom emojis" do
|
||||
name: 'test',
|
||||
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")
|
||||
|
||||
@ -50,7 +50,7 @@ RSpec.describe "Managing custom emojis" do
|
||||
name: 'test',
|
||||
file: fixture_file_upload("#{Rails.root}/spec/fixtures/images/logo.png")
|
||||
})
|
||||
end.first
|
||||
end.find{|m| m.channel == "/uploads/emoji"}
|
||||
|
||||
custom_emoji = CustomEmoji.last
|
||||
upload = custom_emoji.upload
|
||||
|
Loading…
Reference in New Issue
Block a user