Skip to content

Commit

Permalink
Fix spec test on update frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
webcompas authored and bastelfreak committed Feb 15, 2024
1 parent 8e03966 commit c03f242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/classes/apt_update_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
apt_update_last_success: factval
}
end
let(:pre_condition) { "class{ '::apt': update => {'frequency' => '#{update_frequency}',} }" }
let(:pre_condition) { "class{ '::apt': update => {'frequency' => #{update_frequency.inspect},} }" }

it 'triggers an apt-get update run' do
# set the apt_update exec\'s refreshonly attribute to false
Expand All @@ -200,7 +200,7 @@
apt_update_last_success: Time.now.to_i
}
end
let(:pre_condition) { "class{ '::apt': update => {'frequency' => '#{update_frequency}',} }" }
let(:pre_condition) { "class{ '::apt': update => {'frequency' => #{update_frequency.inspect},} }" }

it 'does not trigger an apt-get update run' do
# don't change the apt_update exec\'s refreshonly attribute. (it should be true)
Expand All @@ -226,7 +226,7 @@
apt_update_last_success: nil
}
end
let(:pre_condition) { "class{ '::apt': update => {'frequency' => '#{update_frequency}',} }" }
let(:pre_condition) { "class{ '::apt': update => {'frequency' => #{update_frequency.inspect},} }" }

it 'triggers an apt-get update run' do
# set the apt_update exec\'s refreshonly attribute to false
Expand Down

0 comments on commit c03f242

Please sign in to comment.