Skip to content

Commit

Permalink
Fix server double.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 9, 2020
1 parent c28ce43 commit ca0ffc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/rubydns/rules_spec.rb
Expand Up @@ -28,8 +28,9 @@ module RubyDNS::RulesSpec

true_callback = Proc.new { true }

let(:server) {double(:logger => Console.logger)}

it "should match string patterns correctly" do
server = double(:logger => Logger.new("/dev/null"))
transaction = double(:query => Resolv::DNS::Message.new(0))

rule = RubyDNS::RuleBasedServer::Rule.new(["foobar", IN::A], true_callback)
Expand All @@ -40,7 +41,6 @@ module RubyDNS::RulesSpec
end

it "should match regular expression patterns correctly" do
server = double(:logger => Logger.new("/dev/null"))
transaction = double(:query => Resolv::DNS::Message.new(0))

rule = RubyDNS::RuleBasedServer::Rule.new([/foo/, IN::A], true_callback)
Expand All @@ -51,7 +51,6 @@ module RubyDNS::RulesSpec
end

it "should match callback patterns correctly" do
server = double(:logger => Logger.new("/dev/null"))
transaction = double(:query => Resolv::DNS::Message.new(0))

calls = 0
Expand Down

0 comments on commit ca0ffc2

Please sign in to comment.