rubocop fixes

This commit is contained in:
Petr Korolev 2016-02-24 15:02:56 +02:00
parent 20c22defc2
commit 0b3e8429c4
3 changed files with 11 additions and 12 deletions

View File

@ -2,9 +2,11 @@ PATH
remote: . remote: .
specs: specs:
github_changelog_generator (1.10.3) github_changelog_generator (1.10.3)
bundler (~> 1.7)
colorize (~> 0.7) colorize (~> 0.7)
github_api (~> 0.12) github_api (~> 0.12)
overcommit (~> 0.31) overcommit (~> 0.31)
rake (~> 10.0)
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
@ -94,11 +96,9 @@ PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
bundler (~> 1.7)
codeclimate-test-reporter (~> 0.4) codeclimate-test-reporter (~> 0.4)
coveralls (~> 0.8) coveralls (~> 0.8)
github_changelog_generator! github_changelog_generator!
rake (~> 10.0)
rspec (~> 3.2) rspec (~> 3.2)
rubocop (~> 0.31) rubocop (~> 0.31)
simplecov (~> 0.10) simplecov (~> 0.10)

View File

@ -38,16 +38,15 @@ describe GitHubChangelogGenerator::ParserFile do
end end
context "turns exclude-labels into an Array", bug: '#327' do 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 it "reads exclude_labels into an Array" do
expect { parse.parse! }.to change { options[:exclude_labels] } expect { parse.parse! }.to change { options[:exclude_labels] }
.from(nil) .from(nil)
.to(["73a91042-da6f-11e5-9335-1040f38d7f90", "7adf83b4-da6f-11e5-ae18-1040f38d7f90"]) .to(["73a91042-da6f-11e5-9335-1040f38d7f90", "7adf83b4-da6f-11e5-ae18-1040f38d7f90"])
end end
end end
end end