Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/time_tracking_formatter_spec.rb')
-rw-r--r--spec/lib/gitlab/time_tracking_formatter_spec.rb46
1 files changed, 0 insertions, 46 deletions
diff --git a/spec/lib/gitlab/time_tracking_formatter_spec.rb b/spec/lib/gitlab/time_tracking_formatter_spec.rb
index dc4ce9458e4..b3372f676d4 100644
--- a/spec/lib/gitlab/time_tracking_formatter_spec.rb
+++ b/spec/lib/gitlab/time_tracking_formatter_spec.rb
@@ -12,28 +12,12 @@ RSpec.describe Gitlab::TimeTrackingFormatter, feature_category: :team_planning d
let(:duration_string) { '3h 20m' }
it { expect(subject).to eq(12_000) }
-
- context 'when update_chronic_duration is false' do
- before do
- stub_feature_flags(update_chronic_duration: false)
- end
-
- it { expect(subject).to eq(12_000) }
- end
end
context 'negative durations' do
let(:duration_string) { '-3h 20m' }
it { expect(subject).to eq(-12_000) }
-
- context 'when update_chronic_duration is false' do
- before do
- stub_feature_flags(update_chronic_duration: false)
- end
-
- it { expect(subject).to eq(-12_000) }
- end
end
context 'durations with months' do
@@ -42,16 +26,6 @@ RSpec.describe Gitlab::TimeTrackingFormatter, feature_category: :team_planning d
it 'uses our custom conversions' do
expect(subject).to eq(576_000)
end
-
- context 'when update_chronic_duration is false' do
- before do
- stub_feature_flags(update_chronic_duration: false)
- end
-
- it 'uses our custom conversions' do
- expect(subject).to eq(576_000)
- end
- end
end
context 'when the duration is nil' do
@@ -69,16 +43,6 @@ RSpec.describe Gitlab::TimeTrackingFormatter, feature_category: :team_planning d
it 'returns nil' do
expect(subject).to be_nil
end
-
- context 'when update_chronic_duration is false' do
- before do
- stub_feature_flags(update_chronic_duration: false)
- end
-
- it 'returns nil' do
- expect(subject).to be_nil
- end
- end
end
context 'when keep_zero is true' do
@@ -87,16 +51,6 @@ RSpec.describe Gitlab::TimeTrackingFormatter, feature_category: :team_planning d
it 'returns zero' do
expect(subject).to eq(0)
end
-
- context 'when update_chronic_duration is false' do
- before do
- stub_feature_flags(update_chronic_duration: false)
- end
-
- it 'returns zero' do
- expect(subject).to eq(0)
- end
- end
end
end
end