From af3d59d34afaadbd625682e4acdb52725d02b582 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 16 Apr 2021 11:06:24 -0300 Subject: [PATCH] asegurarse que solo podamos encolar el sitio una vez --- test/models/site_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/models/site_test.rb b/test/models/site_test.rb index c50bfd20..c894932d 100644 --- a/test/models/site_test.rb +++ b/test/models/site_test.rb @@ -108,5 +108,10 @@ class SiteTest < ActiveSupport::TestCase assert_equal %w[book editorial post], site.data['layouts'].keys assert_equal %i[book editorial post], site.layouts.to_h.keys + + test 'se pueden encolar una sola vez' do + assert site.enqueue! + assert site.enqueued? + assert_not site.enqueue! end end