spec/rubocop/cop/style/semicolon_spec.rb in rubocop-0.12.0 vs spec/rubocop/cop/style/semicolon_spec.rb in rubocop-0.13.0
- old
+ new
@@ -4,12 +4,12 @@
module Rubocop
module Cop
module Style
describe Semicolon do
- let(:s) { Semicolon.new }
- before do
- Semicolon.config = {
+ subject(:s) { Semicolon.new }
+ let(:cop_config) do
+ {
'AllowAfterParameterListInOneLineMethods' => false,
'AllowBeforeEndInOneLineMethods' => true
}
end