Commit cb308689 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'rc/cob-do-not-require-stackprof' into 'master'

Don't require stackprof in Gemfile

See merge request !13407
parents 8463d8b1 0a3f4dfc
...@@ -355,7 +355,7 @@ group :development, :test do ...@@ -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
......
#!/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 ...@@ -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}")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment