From 9da73bb9720df51c796dab64267f72fe999c9280 Mon Sep 17 00:00:00 2001 From: Jacob Helwig Date: Mon, 25 Jun 2018 09:50:56 -0700 Subject: Remove Rubocop Layout/MultilineMethodCallIndentation violations --- spec/integration/provider/sshkey_spec.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'spec') diff --git a/spec/integration/provider/sshkey_spec.rb b/spec/integration/provider/sshkey_spec.rb index 770825b..4a3bf87 100644 --- a/spec/integration/provider/sshkey_spec.rb +++ b/spec/integration/provider/sshkey_spec.rb @@ -98,11 +98,9 @@ describe Puppet::Type.type(:sshkey).provider(:parsed), unless: Puppet.features.m apply_with_error_check(manifest) if aliases.key?(type) full_type = aliases[type] - expect(File.read(sshkey_file)) - .to match(%r{#{sshkey_name}.*#{full_type}.*mynew}) + expect(File.read(sshkey_file)).to match(%r{#{sshkey_name}.*#{full_type}.*mynew}) else - expect(File.read(sshkey_file)) - .to match(%r{#{sshkey_name}.*#{type}.*mynew}) + expect(File.read(sshkey_file)).to match(%r{#{sshkey_name}.*#{type}.*mynew}) end end end @@ -145,8 +143,9 @@ describe Puppet::Type.type(:sshkey).provider(:parsed), unless: Puppet.features.m it 'fetches an entry from resources' do resource_app = Puppet::Application[:resource] resource_app.preinit - resource_app.command_line.stubs(:args) - .returns([type_under_test, sshkey_name, "target=#{sshkey_file}"]) + resource_app.command_line + .stubs(:args) + .returns([type_under_test, sshkey_name, "target=#{sshkey_file}"]) resource_app.expects(:puts).with do |args| expect(args).to match(%r{#{sshkey_name}}) -- cgit v1.2.3