Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Jan 26, 2024
1 parent 15d4155 commit a7b16ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/controllers/api/v1/projects_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -847,10 +847,12 @@ def tag_request

it_behaves_like 'is deactivatable'

it "should append 'delete' to display_name" do
it "appends 'deleted' to display_name" do
stub_token(scopes: scopes, user_id: authorized_user.id)
set_preconditions
delete :destroy, params: {id: resource.id}
expect(resource.display_name).to end_with('delete')
end
expect(resource.reload.display_name).to end_with('deleted')
end
end

describe '#copy' do
Expand Down

0 comments on commit a7b16ed

Please sign in to comment.