5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-18 07:50:49 +00:00
panel/test/models/metadata_test.rb
2021-05-13 19:42:12 -03:00

20 lines
401 B
Ruby

# frozen_string_literal: true
module MetadataTest
extend ActiveSupport::Concern
included do
setup do
name = SecureRandom.hex
# TODO: Poder cambiar el nombre
FileUtils.cp_r(Rails.root.join('test', 'fixtures', 'site_with_relationships'), Rails.root.join('_sites', name))
@site = create :site, name: name
end
teardown do
@site&.destroy
end
end
end