lhc 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lhc/response.rb +4 -0
- data/lib/lhc/version.rb +1 -1
- data/spec/response/options_spec.rb +18 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9340ca162d9f5d5ad49d6a703e327d849f5b3ef
|
4
|
+
data.tar.gz: dbcbccfb870b4f438669b02f388f1e8eeb96ea69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90f2ebae04ec5b322858cda86ac30bc985863c26aad6aab7478d615844a7676827caa7b4ecd5fe78982ec8a3d3be6198ad2b61d87ae918cc0a9e97d807c42b7c
|
7
|
+
data.tar.gz: 5854c0038f5ae2190a4175279b1ea8d8ffc46480efd2adeffbe6ba0062390851df2621003e2357d865e4a66fe7c829014c069b6c9b36f48fa8499beae5643cab
|
data/lib/lhc/response.rb
CHANGED
data/lib/lhc/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe LHC::Response do
|
4
|
+
|
5
|
+
context 'headers' do
|
6
|
+
|
7
|
+
let(:options) do
|
8
|
+
{ 'return_code' => :ok }
|
9
|
+
end
|
10
|
+
|
11
|
+
let(:raw_response) { OpenStruct.new({ options: options }) }
|
12
|
+
|
13
|
+
it 'provides headers' do
|
14
|
+
response = LHC::Response.new(raw_response, nil)
|
15
|
+
expect(response.options).to eq options
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- local.ch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -214,6 +214,7 @@ files:
|
|
214
214
|
- spec/response/code_spec.rb
|
215
215
|
- spec/response/data_spec.rb
|
216
216
|
- spec/response/headers_spec.rb
|
217
|
+
- spec/response/options_spec.rb
|
217
218
|
- spec/response/success_spec.rb
|
218
219
|
- spec/response/time_spec.rb
|
219
220
|
- spec/spec_helper.rb
|
@@ -322,6 +323,7 @@ test_files:
|
|
322
323
|
- spec/response/code_spec.rb
|
323
324
|
- spec/response/data_spec.rb
|
324
325
|
- spec/response/headers_spec.rb
|
326
|
+
- spec/response/options_spec.rb
|
325
327
|
- spec/response/success_spec.rb
|
326
328
|
- spec/response/time_spec.rb
|
327
329
|
- spec/spec_helper.rb
|