helpstation 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/lib/helpstation/fetchers.rb +1 -1
- data/lib/helpstation/version.rb +1 -1
- data/spec/helpstation/processors/by_key_fetcher_spec.rb +6 -4
- data/spec/spec_helper.rb +0 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81341cf8e7e321080c55620575ae4a25cb076ab3
|
4
|
+
data.tar.gz: ae67dc37c863c5c771bd67caf5b95e857c573477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 804aa898d1b18fc6e9fc78d9e9e481318c44afe73ed7123f141fe5cb72d49d6896d0a108b24e2e3739e263218ef614b4372120c5cbd5ff5e377d87709f2cd734
|
7
|
+
data.tar.gz: 9879d023e41c03661a79aee77727da624dc77036185bb87d7ef65fa8952ddc2c5831986dd5b0536f4b0e87a7fdbecc523fc199edb207c494aa10b80349370d4a
|
data/lib/helpstation/fetchers.rb
CHANGED
data/lib/helpstation/version.rb
CHANGED
@@ -4,11 +4,13 @@ describe Helpstation::Fetchers::ByKeyFetcher do
|
|
4
4
|
subject { processor.call request }
|
5
5
|
|
6
6
|
let(:processor) {
|
7
|
-
described_class.build(input_key, output_key) do
|
8
|
-
|
7
|
+
described_class.build(input_key, output_key) do |key, env|
|
8
|
+
"#{key} and #{env}"
|
9
9
|
end
|
10
10
|
}
|
11
11
|
|
12
|
+
let(:env) { { mock_service: :mock_value } }
|
13
|
+
|
12
14
|
let(:input_key) { :my_input }
|
13
15
|
let(:output_key) { :my_output }
|
14
16
|
let(:output) { "putting out" }
|
@@ -16,13 +18,13 @@ describe Helpstation::Fetchers::ByKeyFetcher do
|
|
16
18
|
let(:request) { Substation::Request.new('my_request', env, input) }
|
17
19
|
|
18
20
|
context 'when input_key is present' do
|
19
|
-
let(:input) { { my_input: '
|
21
|
+
let(:input) { { my_input: 'input_key' } }
|
20
22
|
|
21
23
|
it 'returns correct output' do
|
22
24
|
expect(subject).to be_a(Substation::Response::Success)
|
23
25
|
expect(subject.output).to eq(
|
24
26
|
my_input: input[:my_input],
|
25
|
-
my_output:
|
27
|
+
my_output: "input_key and {:mock_service=>:mock_value}"
|
26
28
|
)
|
27
29
|
end
|
28
30
|
end
|
data/spec/spec_helper.rb
CHANGED