Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Apr 20, 2016
2 parents f78eba6 + 3ad82cc commit 56e2f9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/tests/fixtures/ruby/bignum_fact_value.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Facter.add('bignum_fact') do
setcode do
12345678901
end
end
6 changes: 6 additions & 0 deletions lib/tests/ruby/ruby.cc
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,10 @@ SCENARIO("custom facts written in Ruby") {
REQUIRE(ruby_value_to_string(facts.get<ruby_value>("foo")) == "99");
}
}
GIVEN("a fact that returns a number larger than 32-bits") {
REQUIRE(load_custom_fact("bignum_fact_value.rb", facts));
THEN("the value should be output correctly") {
REQUIRE(ruby_value_to_string(facts.get<ruby_value>("bignum_fact")) == "12345678901");
}
}
}

0 comments on commit 56e2f9b

Please sign in to comment.