Skip to content

Commit

Permalink
Stop sorting config keys for newer ruby versions.
Browse files Browse the repository at this point in the history
 * For ruby versions > 1.9.3 use order specified by user for
   configuration, otherwise sort it alphabetically.
 * Remove extraneous whitespace.
  • Loading branch information
gizmoguy committed Jan 28, 2016
1 parent c36a3da commit 1d37788
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
is_expected.to contain_file('sssd.conf') \
.with_ensure('present') \
.with_path('/etc/sssd/sssd.conf') \
.with_content(/^# Managed by Puppet.\n\n\[domain\/ad.example.com\]/)
.with_content(%r{^# Managed by Puppet.\n\n\[domain/ad.example.com\]})
end
end
end
Expand Down Expand Up @@ -98,7 +98,7 @@
is_expected.to contain_file('sssd.conf') \
.with_ensure('present') \
.with_path('/etc/sssd/sssd.conf') \
.with_content(/^# Managed by Puppet.\n\n\[domain\/ad.example.com\]/)
.with_content(%r{^# Managed by Puppet.\n\n\[domain/ad.example.com\]})
end
end
end
Expand Down Expand Up @@ -150,7 +150,7 @@
is_expected.to contain_file('sssd.conf') \
.with_ensure('present') \
.with_path('/etc/sssd/sssd.conf') \
.with_content(/^# Managed by Puppet.\n\n\[domain\/ad.example.com\]/)
.with_content(%r{^# Managed by Puppet.\n\n\[domain/ad.example.com\]})
end
end
end
Expand Down Expand Up @@ -200,7 +200,7 @@
is_expected.to contain_file('sssd.conf') \
.with_ensure('present') \
.with_path('/etc/sssd/sssd.conf') \
.with_content(/^# Managed by Puppet.\n\n\[domain\/ad.example.com\]/)
.with_content(%r{^# Managed by Puppet.\n\n\[domain/ad.example.com\]})
end
end
end
Expand Down

0 comments on commit 1d37788

Please sign in to comment.