From b033c2036a18f0abee5925beb1696533f66d8e56 Mon Sep 17 00:00:00 2001 From: Jake Lambert Date: Sat, 4 Mar 2017 10:23:04 -0500 Subject: [PATCH] Fix rubocop issues --- .rubocop.yml | 4 ++++ Gemfile | 2 +- spec/pagination_spec.rb | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e1a82ed..db0a5ed 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -58,6 +58,10 @@ Metrics/ClassLength: Metrics/MethodLength: Enabled: false +Metrics/BlockLength: + Exclude: + - "**/*_spec.rb" + Metrics/ParameterLists: Max: 5 CountKeywordArgs: false diff --git a/Gemfile b/Gemfile index aa11452..449e957 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' -gem 'rake' gem 'byebug' +gem 'rake' gem 'rubocop' gem 'yard' diff --git a/spec/pagination_spec.rb b/spec/pagination_spec.rb index 14fc6ac..43edd5b 100644 --- a/spec/pagination_spec.rb +++ b/spec/pagination_spec.rb @@ -13,7 +13,8 @@ it 'should send query parameters in each page request' do VCR.use_cassette 'pagination_with_query_params' do - users, = client.list_users_assigned_to_application(PAGED_APPS_APP_ID, paginate: true, query: {expand: 'user', limit: '1'}) + users, = client.list_users_assigned_to_application(PAGED_APPS_APP_ID, + paginate: true, query: { expand: 'user', limit: '1' }) users.each do |user| expect(user._embedded).not_to be_nil, "User #{user.id} was expected to have expanded user profile in _embedded" end