houndci linting fixes

pull/2405/head
Oliver Günther 10 years ago
parent a112291396
commit d683d2a932
  1. 2
      spec/lib/api/v3/users/user_representer_spec.rb
  2. 5
      spec/requests/api/v3/user/userlock_resource_spec.rb

@ -36,7 +36,7 @@ describe ::API::V3::Users::UserRepresenter do
status: 1)
}
let(:current_user) { FactoryGirl.create(:user) }
let(:representer) { described_class.new(user, { current_user: current_user }) }
let(:representer) { described_class.new(user, current_user: current_user) }
context 'generation' do
subject(:generated) { representer.to_json }

@ -65,7 +65,7 @@ describe 'API v3 UserLock resource', type: :request do
end
context 'user account is incompatible' do
let(:user) { FactoryGirl.create(:user, status: User::STATUSES[:registered] )}
let(:user) { FactoryGirl.create(:user, status: User::STATUSES[:registered]) }
it 'should fail for invalid transitions' do
expect(subject.status).to eq(400)
end
@ -77,11 +77,10 @@ describe 'API v3 UserLock resource', type: :request do
it_behaves_like 'not found', 9999, 'User'
end
context 'non-admin user' do
it 'should respond with 403' do
expect(subject.status).to eq(403)
end
end
end
end
end

Loading…
Cancel
Save