rearview 1.2.2.rc.1-jruby → 1.2.2.rc.2-jruby
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphite/client.rb +1 -1
- data/lib/rearview/version.rb +1 -1
- data/spec/dummy/log/development.log +22 -0
- data/spec/dummy/log/test.log +2986 -0
- data/spec/lib/graphite/client_spec.rb +8 -8
- metadata +2 -2
@@ -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
|
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
|
102
|
-
@request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png; charset=bogus'
|
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'
|
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
|
114
|
-
@request_stubs.get('/render') {[ 200, { 'content-type' => 'image/png'
|
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.
|
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-
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|