Skip to content

Commit

Permalink
Cleanup tests for int->string conversion on facts
Browse files Browse the repository at this point in the history
4x does not magically convert between ints and strings
for facts.
  • Loading branch information
Alexander J. Maidak committed Mar 7, 2016
1 parent 6c13c64 commit 8d595c7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions spec/classes/params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => 6,
:operatingsystemmajrelease => '6',
}
end

Expand All @@ -17,7 +17,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => 4,
:operatingsystemmajrelease => '4',
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/udev_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => 6,
:operatingsystemmajrelease => '6',
}
end

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/udevadm/logpriority_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
describe 'for osfamily RedHat and operatingsystemmajrelease 6' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => 6,
:operatingsystemmajrelease => '6',
}
end

Expand Down Expand Up @@ -66,7 +66,7 @@
describe 'for osfamily RedHat and operatingsystemmajrelease 5' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => 5,
:operatingsystemmajrelease => '5',
}
end

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/udevadm/trigger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe 'for osfamily RedHat' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => 6,
:operatingsystemmajrelease => '6',
}
end

Expand All @@ -21,7 +21,7 @@
describe 'for osfamily RedHat' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => 5,
:operatingsystemmajrelease => '5',
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/rule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => 6,
:operatingsystemmajrelease => '6',
}
end

Expand Down

0 comments on commit 8d595c7

Please sign in to comment.