rubocop fixes
This commit is contained in:
parent
20c22defc2
commit
0b3e8429c4
|
@ -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)
|
||||||
|
|
|
@ -27,7 +27,7 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
||||||
Coveralls::SimpleCov::Formatter,
|
Coveralls::SimpleCov::Formatter,
|
||||||
SimpleCov::Formatter::HTMLFormatter,
|
SimpleCov::Formatter::HTMLFormatter,
|
||||||
CodeClimate::TestReporter::Formatter
|
CodeClimate::TestReporter::Formatter
|
||||||
])
|
])
|
||||||
SimpleCov.start
|
SimpleCov.start
|
||||||
|
|
||||||
require "github_changelog_generator"
|
require "github_changelog_generator"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user