Commit 97ca9352 authored by nmilojevic1's avatar nmilojevic1

Fix layout in specs

parent 8387a827
......@@ -5,7 +5,6 @@ require 'fast_spec_helper'
describe Gitlab::Utils::Measuring do
describe '#execute_with' do
let(:measurement_logger) { double(:logger) }
let(:measurement_enabled) { true }
let(:base_log_data) do
{
class: described_class.name
......@@ -16,6 +15,7 @@ describe Gitlab::Utils::Measuring do
subject { described_class.execute_with(measurement_enabled, measurement_logger, base_log_data) { result_block } }
context 'when measurement is enabled' do
let(:measurement_enabled) { true }
let!(:measurement) { described_class.new(logger: measurement_logger, base_log_data: base_log_data) }
before do
......@@ -33,6 +33,7 @@ describe Gitlab::Utils::Measuring do
is_expected.to eq(result_block)
end
end
context 'when measurement is disabled' do
let(:measurement_enabled) { false }
......
......@@ -5,7 +5,7 @@ RSpec.shared_examples 'measurable' do
let(:measurement_enabled) { true }
it 'prints measurement results' do
expect { subject }.to output(including("time_to_finish")).to_stdout
expect { subject }.to output(including('time_to_finish')).to_stdout
end
end
......
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