diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2014-10-09 13:33:06 -0400 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2014-10-09 13:33:06 -0400 |
commit | 0c0f7e13cdb407ca57d2808de9e6dc6ace9d856b (patch) | |
tree | 44ecfd905094e549eaed7b25d57c32ef840747c4 /spec/functions/fqdn_rotate_spec.rb | |
parent | 9bbc62d12ab665115b74920cdfbe55205786f328 (diff) | |
parent | 23bc7d51bd3aca0c3a3391bb628a797dc768422a (diff) |
Merge pull request #262 from tremble/MODULES-707
Modules 707
Diffstat (limited to 'spec/functions/fqdn_rotate_spec.rb')
-rwxr-xr-x | spec/functions/fqdn_rotate_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/functions/fqdn_rotate_spec.rb b/spec/functions/fqdn_rotate_spec.rb index b2dc1f5..40057d4 100755 --- a/spec/functions/fqdn_rotate_spec.rb +++ b/spec/functions/fqdn_rotate_spec.rb @@ -30,4 +30,14 @@ describe "the fqdn_rotate function" do val2 = scope.function_fqdn_rotate(["abcdefghijklmnopqrstuvwxyz01234567890987654321"]) expect(val1).not_to eql(val2) end + + it "should accept objects which extend String" do + class AlsoString < String + end + + scope.expects(:lookupvar).with("::fqdn").returns("127.0.0.1") + value = AlsoString.new("asdf") + result = scope.function_fqdn_rotate([value]) + result.size.should(eq(4)) + end end |