rspec-webservice_matchers 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fd942e9ab0d3224b9147101126f990826db7174
4
- data.tar.gz: 2a257f3d1705df87e2cd974b23db47cdc82e3715
3
+ metadata.gz: e62fe40def403875ad5bec7d114e96402e7d668c
4
+ data.tar.gz: e3e2a83066cec63b84ad9b02fb785c022f81bd48
5
5
  SHA512:
6
- metadata.gz: f453a9a2b5a69e1a0a21384da62f4cb62d72e6aa28b46fc2c7b3b178976f0c3d1b40b6cc74e3d5cbafed6997e208613c2ba293bc43fef1c6eb10362fbaee2500
7
- data.tar.gz: 2697099e668f2652f00cd7683b22c22e6081f1f0003222139b74c6d424c5345ea18feb9cf0f6445f8e8e1e0b3421b195e391b6b340448fac48711e1f2bf8ea51
6
+ metadata.gz: 95e971b5f599d637de0a5218c7140d24ad9f3650b9247da72ac22fea33b3516621fb642a91c0f2cf659b38a9102cd0035a6b74504ffa9bd2df9381502652c953
7
+ data.tar.gz: a1debd0244fd675b6e989a76ca507f4c5f6b21e96b64418fcf71f6a4711bfb1abea7da61cf9b2f04f030c6ae745cf528553a9b1efa73d32ccbeb9db4be1d8b8e
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module WebserviceMatchers
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
@@ -71,7 +71,7 @@ module RSpec
71
71
  match do |url_or_domain_name|
72
72
  url = RSpec::WebserviceMatchers.make_url(url_or_domain_name)
73
73
  response = RSpec::WebserviceMatchers.connection.head(url)
74
- response.status == expected
74
+ response.status == expected.to_i
75
75
  end
76
76
  end
77
77
 
@@ -21,6 +21,10 @@ describe 'status_code' do
21
21
  'www.website.com'.should be_status 200
22
22
  end
23
23
 
24
+ it 'accepts status code in text form too' do
25
+ 'www.website.com'.should be_status '200'
26
+ end
27
+
24
28
  it 'can check 503 for the Service Unavailable status' do
25
29
  'http://www.weblaws.org/texas/laws/tex._spec._dist._local_laws_code_section_1011.202_tax_to_pay_general_obligation_bonds'.should be_status 503
26
30
  end
@@ -35,4 +39,4 @@ describe 'be_up' do
35
39
  it 'can also handle a simple 200' do
36
40
  'http://www.rfc-editor.org/rfc/rfc2616.txt'.should be_up
37
41
  end
38
- end
42
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-webservice_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-16 00:00:00.000000000 Z
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler