diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-01-18 21:18:13 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-01-18 21:18:13 +0300 |
commit | cc1e43da3993b6839b4dbe03ae1b8bfb81066666 (patch) | |
tree | 50a10f227bd8f08776ab5acd2e40a04f4cc8c42f /spec/services/slash_commands | |
parent | c739005849dcaecc54214fe403b4c7e8c9ab151f (diff) | |
parent | 0f3c9355c1b57a56b4027df4deb78a2520596b15 (diff) |
Merge branch 'time-tracking-api' into 'master'
Time tracking API
Closes #25861
See merge request !8483
Diffstat (limited to 'spec/services/slash_commands')
-rw-r--r-- | spec/services/slash_commands/interpret_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/slash_commands/interpret_service_spec.rb b/spec/services/slash_commands/interpret_service_spec.rb index 99dd9be3218..66fc8fc360b 100644 --- a/spec/services/slash_commands/interpret_service_spec.rb +++ b/spec/services/slash_commands/interpret_service_spec.rb @@ -223,7 +223,7 @@ describe SlashCommands::InterpretService, services: true do it 'populates spend_time: 3600 if content contains /spend 1h' do _, updates = service.execute(content, issuable) - expect(updates).to eq(spend_time: 3600) + expect(updates).to eq(spend_time: { duration: 3600, user: developer }) end end @@ -231,7 +231,7 @@ describe SlashCommands::InterpretService, services: true do it 'populates spend_time: -1800 if content contains /spend -30m' do _, updates = service.execute(content, issuable) - expect(updates).to eq(spend_time: -1800) + expect(updates).to eq(spend_time: { duration: -1800, user: developer }) end end @@ -247,7 +247,7 @@ describe SlashCommands::InterpretService, services: true do it 'populates spend_time: :reset if content contains /remove_time_spent' do _, updates = service.execute(content, issuable) - expect(updates).to eq(spend_time: :reset) + expect(updates).to eq(spend_time: { duration: :reset, user: developer }) end end |