Skip to content

Commit

Permalink
Useless text, the TimeComponent will add it
Browse files Browse the repository at this point in the history
  • Loading branch information
ncounter committed Mar 28, 2023
1 parent 1ea0696 commit 89e0944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/app/views/webui/request/_show_side_links.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- elsif bs_request.accept_at.past?
This request will be automatically accepted when it enters the 'new' state.
- else
This request will be automatically accepted in
This request will be automatically accepted
= render TimeComponent.new(time: bs_request.accept_at)
- bs_request.reviews.where(state: 'new').each do |review|
%li
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/features/webui/requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
bs_request.update(accept_at: Time.now + 1.day)
visit request_show_path(bs_request)
expect(page)
.to have_text("This request will be automatically accepted in #{TimeComponent.new(time: bs_request.accept_at).human_time}.")
.to have_text("This request will be automatically accepted #{TimeComponent.new(time: bs_request.accept_at).human_time}.")
end
end

Expand Down

0 comments on commit 89e0944

Please sign in to comment.