Run benchmark specs optionally

This commit is contained in:
Hakan Ensari 2012-11-22 13:25:14 +00:00
parent 9b6a9082b3
commit 84135eac5b
2 changed files with 23 additions and 21 deletions

View File

@ -2,6 +2,7 @@ require_relative 'helper'
require 'rack/test'
require 'app'
if ENV['BENCH']
describe 'benchmark the app' do
include Rack::Test::Methods
@ -33,3 +34,4 @@ describe 'benchmark the app' do
end
end
end
end

View File

@ -1,3 +1,3 @@
require 'minitest/autorun'
require 'minitest/benchmark'
require 'minitest/benchmark' if ENV['BENCH']
require 'minitest/pride'