From 0b3e8429c4b1c8f6d4e9cdc0584544eb13f2f6a1 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Wed, 24 Feb 2016 15:02:56 +0200 Subject: [PATCH] rubocop fixes --- Gemfile.lock | 4 ++-- spec/spec_helper.rb | 8 ++++---- spec/unit/parse_file_spec.rb | 11 +++++------ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 59d6ac9..e7e4cff 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,9 +2,11 @@ PATH remote: . specs: github_changelog_generator (1.10.3) + bundler (~> 1.7) colorize (~> 0.7) github_api (~> 0.12) overcommit (~> 0.31) + rake (~> 10.0) GEM remote: https://rubygems.org/ @@ -94,11 +96,9 @@ PLATFORMS ruby DEPENDENCIES - bundler (~> 1.7) codeclimate-test-reporter (~> 0.4) coveralls (~> 0.8) github_changelog_generator! - rake (~> 10.0) rspec (~> 3.2) rubocop (~> 0.31) simplecov (~> 0.10) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5e4530f..2edef57 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -24,10 +24,10 @@ module SpecHelper end SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ - Coveralls::SimpleCov::Formatter, - SimpleCov::Formatter::HTMLFormatter, - CodeClimate::TestReporter::Formatter -]) + Coveralls::SimpleCov::Formatter, + SimpleCov::Formatter::HTMLFormatter, + CodeClimate::TestReporter::Formatter + ]) SimpleCov.start require "github_changelog_generator" diff --git a/spec/unit/parse_file_spec.rb b/spec/unit/parse_file_spec.rb index 41eafbd..99c6477 100644 --- a/spec/unit/parse_file_spec.rb +++ b/spec/unit/parse_file_spec.rb @@ -38,16 +38,15 @@ describe GitHubChangelogGenerator::ParserFile do end context "turns exclude-labels into an Array", bug: '#327' do - let(:options) { + let(:options) do { - params_file: 'spec/files/github_changelog_params_327' + params_file: "spec/files/github_changelog_params_327" } - } + end it "reads exclude_labels into an Array" do expect { parse.parse! }.to change { options[:exclude_labels] } - .from(nil) - .to(["73a91042-da6f-11e5-9335-1040f38d7f90", "7adf83b4-da6f-11e5-ae18-1040f38d7f90"]) - + .from(nil) + .to(["73a91042-da6f-11e5-9335-1040f38d7f90", "7adf83b4-da6f-11e5-ae18-1040f38d7f90"]) end end end