obey style rules

pull/2411/head
Jan Sandbrink 10 years ago
parent c11bd5b8d5
commit d1e3f23467
  1. 4
      lib/api/v3/users/user_representer.rb
  2. 4
      spec/lib/api/v3/users/user_representer_spec.rb

@ -73,8 +73,8 @@ module API
method: :delete
} if current_user_is_admin && represented.activatable?
end
link :delete do
link :delete do
{
href: api_v3_paths.user(represented.id),
title: "Delete #{represented.login}",

@ -88,8 +88,8 @@ describe ::API::V3::Users::UserRepresenter do
expect(subject).to have_json_path('_links/unlock/href')
end
end
it 'should link to delete' do
it 'should link to delete' do
expect(subject).to have_json_path('_links/delete/href')
end
end

Loading…
Cancel
Save