5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 09:36:22 +00:00
panel/test/system/site_test.rb
2020-10-05 15:19:11 -03:00

21 lines
440 B
Ruby

# frozen_string_literal: true
require 'test_helper'
class SiteTest < ActiveSupport::TestCase
def site
@site ||= Site.new name: 'recursero', design_id: Design.find_by_gem('recursero-jekyll-theme').id
end
test 'tiene una performance' do
skip unless ENV['TEST_PERFORMANCE'].present?
site.read
profile = StackProf.run mode: :object do
site.posts
end
StackProf::Report.new(profile).print_text
end
end