From ad7d1325092d019b877b5f8ff6c9608beb009c8f Mon Sep 17 00:00:00 2001 From: Anton Davydov Date: Fri, 1 Jan 2016 05:26:55 +0300 Subject: [PATCH] Update copyright to 2016 year [skip ci] --- Gemfile | 3 +++ LICENSE.md | 2 +- test/test_helper.rb | 12 ++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index da31999..c3452eb 100644 --- a/Gemfile +++ b/Gemfile @@ -14,3 +14,6 @@ gem 'lotus-view', '~> 0.5', github: 'lotus/view', branch: '0.5.x' gem 'simplecov', require: false gem 'coveralls', require: false + +gem 'stackprof' +gem 'minitest-around' diff --git a/LICENSE.md b/LICENSE.md index c3ab521..5799978 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2014 Luca Guidi +Copyright © 2014-2016 Luca Guidi MIT License diff --git a/test/test_helper.rb b/test/test_helper.rb index 6ed049c..6cd1172 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -22,3 +22,15 @@ require_relative './fixtures' Lotus::View.load! + +require 'stackprof' +require 'minitest/around/spec' + +class Minitest::Test + def around(&example) + path = "/Users/anton/work/repositories/lotus/helpers/tmp/stackprof-test-#{Time.now.to_i}-#{rand(200)}.dump" + StackProf.run(mode: :object, out: path.to_s) do + example.call + end + end +end