Skip to content

Commit c921036

Browse files
committed
change name to fetch_os_name
1 parent f6473a4 commit c921036

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/acceptance/firewall_attributes_exceptions_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Skipping those from which we know they would fail.
2020
describe 'bytecode property', unless: (os[:family] == 'redhat' && os[:release][0] <= '6') ||
2121
(os[:family] == 'sles' && os[:release][0..1] <= '11') ||
22-
(get_os_name == 'oraclelinux' && os[:release][0] <= '7') ||
22+
(fetch_os_name == 'oraclelinux' && os[:release][0] <= '7') ||
2323
(os[:family] == 'ubuntu') do
2424
describe 'bytecode' do
2525
context '4,48 0 0 9,21 0 1 6,6 0 0 1,6 0 0 0' do

spec/spec_helper_acceptance_local.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def update_profile_file
4343
run_shell("sed -i '/mesg n || true/c\\test -t 0 && mesg n || true' ~/.profile")
4444
end
4545

46-
def get_os_name # rubocop:disable Style/AccessorMethodName: Do not prefix reader method names with get_
46+
def fetch_os_name
4747
@facter_os_name ||= run_shell('facter os.name').stdout.delete("\n").downcase
4848
end
4949

0 commit comments

Comments
 (0)