diff options
author | Luke Kanies <luke@madstop.com> | 2009-08-19 11:17:45 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-08-24 11:36:19 +1000 |
commit | 7f749cb93787dc3a0f70b0e24ddda1e0cdfecb3d (patch) | |
tree | 0991c926d1cb39dd98d8326083997e2fb491f958 /spec | |
parent | c0da3bfebb40198703d7d99f2809b315682e28fc (diff) | |
download | puppet-7f749cb93787dc3a0f70b0e24ddda1e0cdfecb3d.tar.gz puppet-7f749cb93787dc3a0f70b0e24ddda1e0cdfecb3d.tar.xz puppet-7f749cb93787dc3a0f70b0e24ddda1e0cdfecb3d.zip |
Fixing a ruby warning in the authstore test
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-rw-r--r--[-rwxr-xr-x] | spec/unit/network/authstore.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/network/authstore.rb b/spec/unit/network/authstore.rb index bc42e2ce1..4da3714ae 100755..100644 --- a/spec/unit/network/authstore.rb +++ b/spec/unit/network/authstore.rb @@ -22,7 +22,7 @@ describe Puppet::Network::AuthStore::Declaration do describe "when the pattern is a numeric IP with a back reference" do before :each do @ip = '100.101.$1' - @declaration = Puppet::Network::AuthStore::Declaration.new(:allow,@ip).interpolate('12.34'.match /(.*)/) + @declaration = Puppet::Network::AuthStore::Declaration.new(:allow,@ip).interpolate('12.34'.match(/(.*)/)) end it "should match an IP with the apropriate interpolation" do @declaration.should be_match('www.testsite.org',@ip.sub(/\$1/,'12.34')) |