mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
correct specs
This commit is contained in:
parent
4ed4d77fd3
commit
4b6c49b13f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue