Don't require stackprof in Gemfile

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-08-09 10:10:33 +02:00
parent 932a6e69b8
commit 0a3f4dfc82
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB
2 changed files with 3 additions and 2 deletions

View file

@ -355,7 +355,7 @@ group :development, :test do
gem 'activerecord_sane_schema_dumper', '0.2' gem 'activerecord_sane_schema_dumper', '0.2'
gem 'stackprof', '~> 0.2.10' gem 'stackprof', '~> 0.2.10', require: false
end end
group :test do group :test do

View file

@ -1,5 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require 'bundler/setup'
require 'stackprof' require 'stackprof'
$:.unshift 'spec' $:.unshift 'spec'
require 'rails_helper' require 'rails_helper'
@ -13,4 +14,4 @@ StackProf.run(mode: :wall, out: output_file, interval: interval) do
RSpec::Core::Runner.run(ARGV, $stderr, $stdout) RSpec::Core::Runner.run(ARGV, $stderr, $stdout)
end end
system("stackprof #{output_file} --text --limit #{limit}") system("bundle exec stackprof #{output_file} --text --limit #{limit}")