rearview 1.2.2.rc.1-jruby → 1.2.2.rc.2-jruby

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,24 +94,24 @@ describe Graphite::Client do
94
94
  end
95
95
  @client.stubs(:connection).returns(@connection_stub)
96
96
  end
97
- it 'is true when response is 200, content is image/png, and content-length > 0' do
98
- @request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png', 'content-length' => '123' }, '' ]}
97
+ it 'is true when response is 200, content is image/png, and body length > 0' do
98
+ @request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png', 'content-length' => '123' }, 'body' ]}
99
99
  expect(@client.reachable?).to be_true
100
100
  end
101
- it 'is true when response is 200, content is "image/png; charset=bogus", and content-length > 0' do
102
- @request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png; charset=bogus', 'content-length' => '123' }, '' ]}
101
+ it 'is true when response is 200, content is "image/png; charset=bogus", and body length > 0' do
102
+ @request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png; charset=bogus' }, 'body' ]}
103
103
  expect(@client.reachable?).to be_true
104
104
  end
105
105
  it 'is false when response is not 200' do
106
- @request_stubs.get('/render') {[ 500, { }, '' ]}
106
+ @request_stubs.get('/render') {[ 500, { 'content-type' => 'image/png' }, 'body' ]}
107
107
  expect(@client.reachable?).to be_false
108
108
  end
109
109
  it 'is false when content-type is not image/png' do
110
- @request_stubs.get('/render') {[ 200, { 'content-type' => 'text/html', 'content-length' => '123' }, '' ]}
110
+ @request_stubs.get('/render') {[ 200, { 'content-type' => 'text/html' }, 'body' ]}
111
111
  expect(@client.reachable?).to be_false
112
112
  end
113
- it 'is false when content-length is 0' do
114
- @request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png', 'content-length' => '0' }, '' ]}
113
+ it 'is false when body length is 0' do
114
+ @request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png' }, '' ]}
115
115
  expect(@client.reachable?).to be_false
116
116
  end
117
117
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rearview
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2.rc.1
4
+ version: 1.2.2.rc.2
5
5
  platform: jruby
6
6
  authors:
7
7
  - Trent Albright
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-06 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails