Skip to content

Commit

Permalink
use negation to check os
Browse files Browse the repository at this point in the history
  • Loading branch information
maxadamo committed Oct 26, 2023
1 parent 40e041c commit 9437b80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/classes/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
client_package: 'glusterfs-client',
version: 'LATEST'
}
repo_params[:repo] = 'ubuntu-22.04-x86_64'.eql?(os)
repo_params[:repo] = !'ubuntu-22.04-x86_64'.eql?(os)

it 'includes gluster::install' do
is_expected.to create_class('gluster::install').with(repo_params)
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
client_package: 'glusterfs-client',
version: 'LATEST',
}
repo_params[:repo] = 'ubuntu-22.04-x86_64'.eql?(os)
repo_params[:repo] = !'ubuntu-22.04-x86_64'.eql?(os)

it 'creates gluster::install' do
is_expected.to create_class('gluster::install').with(repo_params)
Expand Down

0 comments on commit 9437b80

Please sign in to comment.