mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
DEV: Fix new features notification flakey specs (#19596)
This commit is contained in:
parent
c2a733a95a
commit
18467d4067
|
@ -75,7 +75,7 @@ RSpec.describe Jobs::CheckNewFeatures do
|
|||
expect(DiscourseUpdates.get_last_viewed_feature_date(admin1.id).iso8601).to eq(Time.zone.now.iso8601)
|
||||
end
|
||||
|
||||
xit "notifies admins about new features that are available in the site's version" do
|
||||
it "notifies admins about new features that are available in the site's version" do
|
||||
Notification.destroy_all
|
||||
|
||||
described_class.new.execute({})
|
||||
|
@ -90,7 +90,7 @@ RSpec.describe Jobs::CheckNewFeatures do
|
|||
).count).to eq(1)
|
||||
end
|
||||
|
||||
xit "consolidates new features notifications" do
|
||||
it "consolidates new features notifications" do
|
||||
Notification.destroy_all
|
||||
|
||||
described_class.new.execute({})
|
||||
|
|
|
@ -154,6 +154,10 @@ RSpec.describe DiscourseUpdates do
|
|||
Discourse.redis.set('new_features', MultiJson.dump(sample_features))
|
||||
end
|
||||
|
||||
after do
|
||||
Discourse.redis.del('new_features')
|
||||
end
|
||||
|
||||
it 'returns all items on the first run' do
|
||||
result = DiscourseUpdates.new_features
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user