summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]spec/unit/network/authstore.rb2
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'))