From d683d2a9321bd64883475be17199aac9231b9d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 9 Jan 2015 13:30:50 +0100 Subject: [PATCH] houndci linting fixes --- spec/lib/api/v3/users/user_representer_spec.rb | 2 +- spec/requests/api/v3/user/userlock_resource_spec.rb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/lib/api/v3/users/user_representer_spec.rb b/spec/lib/api/v3/users/user_representer_spec.rb index 9fa77f890f..454e0e8835 100644 --- a/spec/lib/api/v3/users/user_representer_spec.rb +++ b/spec/lib/api/v3/users/user_representer_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 } diff --git a/spec/requests/api/v3/user/userlock_resource_spec.rb b/spec/requests/api/v3/user/userlock_resource_spec.rb index 109a2d6207..7c4951982d 100644 --- a/spec/requests/api/v3/user/userlock_resource_spec.rb +++ b/spec/requests/api/v3/user/userlock_resource_spec.rb @@ -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 \ No newline at end of file +end