diff options
Diffstat (limited to 'spec/services/quick_actions/interpret_service_spec.rb')
-rw-r--r-- | spec/services/quick_actions/interpret_service_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/services/quick_actions/interpret_service_spec.rb b/spec/services/quick_actions/interpret_service_spec.rb index a43f3bc55bf..f9c16c84121 100644 --- a/spec/services/quick_actions/interpret_service_spec.rb +++ b/spec/services/quick_actions/interpret_service_spec.rb @@ -1450,6 +1450,11 @@ RSpec.describe QuickActions::InterpretService do let(:issuable) { issue } end + it_behaves_like 'estimate command' do + let(:content) { '/estimate_time 1h' } + let(:issuable) { issue } + end + it_behaves_like 'failed command' do let(:content) { '/estimate' } let(:issuable) { issue } @@ -1470,6 +1475,11 @@ RSpec.describe QuickActions::InterpretService do let(:issuable) { issue } end + it_behaves_like 'spend command' do + let(:content) { '/spend_time 1h' } + let(:issuable) { issue } + end + it_behaves_like 'spend command with negative time' do let(:content) { '/spend -120m' } let(:issuable) { issue } @@ -1537,6 +1547,11 @@ RSpec.describe QuickActions::InterpretService do let(:issuable) { issue } end + it_behaves_like 'remove_estimate command' do + let(:content) { '/remove_time_estimate' } + let(:issuable) { issue } + end + it_behaves_like 'remove_time_spent command' do let(:content) { '/remove_time_spent' } let(:issuable) { issue } |