rspec-dns 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/lib/rspec-dns.rb +1 -1
- data/rspec-dns.gemspec +1 -1
- data/spec/rspec-dns/have_dns_spec.rb +2 -5
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDk3ZDBlNjQ0NTJhZmNjNjZiNWNmMWU5MzgzODg3ZjJmNjI5MmZiZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjZhMmQzOGJkOGYwNzhjMjZmZTE0YWIyYzcwYWJlNTBiYTQwYjE4Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzhjOTc4MDZmYjZlYWNkZjhjOGE1NzlhOWQ1M2I0OWE0ZmVhOWNlM2QwNDBm
|
10
|
+
MTUxOTQ5N2U1YjMyOWRlMzQ0Y2RiYjU4ZDc0MDlkNmU5OWI0ODUzMWIzZWUy
|
11
|
+
YzY2YzdhYTcxYzk4YzE4MDMyZDM5ZWE2MTAxNGZkYTA0MWY5MjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzVmZjBhZTZlMzcwMjQxMDUzMTcwY2U5MjVlNjI4MjQ3MGE0NDMxYTY1ZGI4
|
14
|
+
YzY4MGZlZWE2MDZlMWQ5NzIzMzA2NDI4OWY3YmMyNjNkM2NiYWZjODRiOWJj
|
15
|
+
NmE0MWFmMzJjNzQyZTc4ZTk2YzY1NjU1NThjYzU0MDlhZThkZDc=
|
data/.gitignore
CHANGED
data/lib/rspec-dns.rb
CHANGED
data/rspec-dns.gemspec
CHANGED
@@ -1,7 +1,4 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require 'dnsruby'
|
3
|
-
require 'resolv'
|
4
|
-
require_relative '../../lib/rspec-dns'
|
5
2
|
|
6
3
|
def stub_records(strings)
|
7
4
|
records = strings.map { |s| Dnsruby::RR.new_from_string(s) }
|
@@ -22,7 +19,7 @@ describe 'rspec-dns matchers' do
|
|
22
19
|
|
23
20
|
'example.com'.should have_dns.with_type('A')
|
24
21
|
'example.com'.should_not have_dns.with_type('TXT')
|
25
|
-
'example.com'.should have_dns.with_type('A').and_address(
|
22
|
+
'example.com'.should have_dns.with_type('A').and_address('192.168.100.100')
|
26
23
|
end
|
27
24
|
|
28
25
|
it 'can evalutate a AAAA record' do
|
@@ -31,7 +28,7 @@ describe 'rspec-dns matchers' do
|
|
31
28
|
'example.com'.should have_dns.with_type('AAAA')
|
32
29
|
'example.com'.should_not have_dns.with_type('A')
|
33
30
|
'example.com'.should have_dns.with_type('AAAA')
|
34
|
-
.and_address(
|
31
|
+
.and_address('2001:2:6C::430')
|
35
32
|
end
|
36
33
|
|
37
34
|
it 'can evalutate a CNAME record' do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-dns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|