Skip to content

Commit

Permalink
[bios] bug fix. Bios version numbers with multiple dots (ex: 1.2.3) w…
Browse files Browse the repository at this point in the history
…ere wrongly converted to float and chopped off (ex: 1.2)
  • Loading branch information
Jérémie Gaidamour committed Jun 23, 2016
1 parent 50a3bcb commit 5dbd55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/g5kchecks/spec/bios/bios_spec.rb
Expand Up @@ -17,8 +17,8 @@
version_api = ""
version_api = @api['version'] if @api
version_ohai = @system['version'].gsub(/'/,'').strip
version_ohai = version_ohai.to_f if version_ohai.to_f != 0.0
version_api = version_api.to_f if version_api.to_f != 0.0
version_ohai = version_ohai.to_f if version_ohai.to_f.to_s == version_ohai
version_api = version_api.to_f if version_api.to_f.to_s == version_api
version_ohai.should eql(version_api), "#{version_ohai}, #{version_api}, bios, version"
end

Expand Down

0 comments on commit 5dbd55a

Please sign in to comment.