mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 01:56:22 +00:00
asegurarse que solo podamos encolar el sitio una vez
This commit is contained in:
parent
1d6cf11d52
commit
af3d59d34a
1 changed files with 5 additions and 0 deletions
|
@ -108,5 +108,10 @@ class SiteTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
assert_equal %w[book editorial post], site.data['layouts'].keys
|
assert_equal %w[book editorial post], site.data['layouts'].keys
|
||||||
assert_equal %i[book editorial post], site.layouts.to_h.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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue