mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 19:33:38 +08:00
ee1b90503c
https://meta.discourse.org/t/broken-image-in-discobot-certificate-with-no-logo-small-url/76594/2
12 lines
308 B
Ruby
12 lines
308 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe DiscourseNarrativeBot::CertificateGenerator do
|
|
let(:user) { Fabricate(:user) }
|
|
|
|
describe 'when an invalid date is given' do
|
|
it 'should default to the current date' do
|
|
expect { described_class.new(user, "2017-00-10") }.to_not raise_error
|
|
end
|
|
end
|
|
end
|