diff options
author | Jacob Helwig <jacob@technosorcery.net> | 2018-06-25 09:50:56 -0700 |
---|---|---|
committer | Jacob Helwig <jacob@technosorcery.net> | 2018-06-25 11:26:53 -0700 |
commit | 9da73bb9720df51c796dab64267f72fe999c9280 (patch) | |
tree | 4faf213c79bbe195672d5b76527228904939c06f /spec | |
parent | 76a4dfb9a976799317206e40bb85b9c398996863 (diff) | |
download | puppet-sshkeys_core-9da73bb9720df51c796dab64267f72fe999c9280.tar.gz puppet-sshkeys_core-9da73bb9720df51c796dab64267f72fe999c9280.tar.bz2 |
Remove Rubocop Layout/MultilineMethodCallIndentation violations
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/provider/sshkey_spec.rb | 11 |
1 files changed, 5 insertions, 6 deletions
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}}) |