Skip to content

Commit

Permalink
re #155. Update spec for dns default
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Jun 8, 2015
1 parent cb6954f commit e81fc1a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/system/system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,21 @@ module Cosmos
tf = Tempfile.new('unittest')
tf.puts("DISABLE_DNS")
tf.close
expect(System.use_dns).to be true
expect(System.use_dns).to be false
System.instance.process_file(tf.path)
expect(System.use_dns).to be false
tf.unlink
end

it "enables dns lookups" do
tf = Tempfile.new('unittest')
tf.puts("ENABLE_DNS")
tf.close
expect(System.use_dns).to be false
System.instance.process_file(tf.path)
expect(System.use_dns).to be true
tf.unlink
end
end

context "with ALLOW_ACCESS" do
Expand Down

0 comments on commit e81fc1a

Please sign in to comment.