5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 10:46:22 +00:00

asegurarse que solo podamos encolar el sitio una vez

This commit is contained in:
f 2021-04-16 11:06:24 -03:00
parent 1d6cf11d52
commit af3d59d34a

View file

@ -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