kalibro_client 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/metric_result/module_results.feature +1 -1
- data/features/step_definitions/metric_result_steps.rb +2 -2
- data/lib/kalibro_client/entities/processor/metric_result.rb +1 -1
- data/lib/kalibro_client/version.rb +1 -1
- data/spec/entities/processor/metric_result_spec.rb +3 -3
- data/spec/factories/module_results.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf7ddc7b8e7edd2848fe20500cf46232ab12c81f
|
4
|
+
data.tar.gz: ef4bce5837524dc3b06af9c260045aedb23cbc32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c116c831e1f791412f1382fec11cd415db40e6fe54b0e4c9cc89d46ba4134d6f7cdbb2af8b992974ee6f03b9239b40977a3fbceb9e73a0f297d9da0cc1632812
|
7
|
+
data.tar.gz: cb39f96e84cc27d6d47aa928648bd8054f79f41a038be38622cd23c09748ca947d48b468129d9c2c36cfc84b65a6772a1e318f47b6f9aaa11a56c5e2a86fd4fb
|
@@ -17,4 +17,4 @@ Feature: Module Results
|
|
17
17
|
And I call the first_processing method for the given repository
|
18
18
|
When I get the first metric result of the given processing
|
19
19
|
And I ask for the module result of the given metric result
|
20
|
-
Then I should get
|
20
|
+
Then I should get the metric result's module result
|
@@ -41,6 +41,6 @@ Then(/^the first metric result should have a metric configuration$/) do
|
|
41
41
|
expect(@response.first.metric_configuration).to be_a(KalibroClient::Entities::Configurations::MetricConfiguration)
|
42
42
|
end
|
43
43
|
|
44
|
-
Then(/^I should get
|
45
|
-
expect(@module_result).to
|
44
|
+
Then(/^I should get the metric result's module result$/) do
|
45
|
+
expect(@module_result.id).to eq(@metric_result.module_result_id)
|
46
46
|
end
|
@@ -53,7 +53,7 @@ module KalibroClient
|
|
53
53
|
def module_result
|
54
54
|
return @module_result unless @module_result.nil? || @module_result_id != @module_result.id
|
55
55
|
module_result_hash = KalibroClient::Entities::Processor::MetricResult
|
56
|
-
.request(':id/module_result', { id:
|
56
|
+
.request(':id/module_result', { id: self.id }, :get)['module_result']
|
57
57
|
@module_result = KalibroClient::Entities::Processor::ModuleResult.new module_result_hash
|
58
58
|
end
|
59
59
|
end
|
@@ -100,7 +100,7 @@ describe KalibroClient::Entities::Processor::MetricResult do
|
|
100
100
|
|
101
101
|
context 'when module_result is nil' do
|
102
102
|
before do
|
103
|
-
described_class.expects(:request).with(':id/module_result', { id:
|
103
|
+
described_class.expects(:request).with(':id/module_result', { id: subject.id }, :get)
|
104
104
|
.returns('module_result' => module_result.to_hash)
|
105
105
|
end
|
106
106
|
|
@@ -114,7 +114,7 @@ describe KalibroClient::Entities::Processor::MetricResult do
|
|
114
114
|
let(:different_module_result) { FactoryGirl.build(:module_result, id: different_id) }
|
115
115
|
|
116
116
|
before do
|
117
|
-
described_class.expects(:request).with(':id/module_result', { id:
|
117
|
+
described_class.expects(:request).with(':id/module_result', { id: subject.id }, :get)
|
118
118
|
.returns('module_result' => different_module_result.to_hash)
|
119
119
|
end
|
120
120
|
|
@@ -126,7 +126,7 @@ describe KalibroClient::Entities::Processor::MetricResult do
|
|
126
126
|
|
127
127
|
context 'when the module_result_id is the same as the module_result\'s id' do
|
128
128
|
before do
|
129
|
-
described_class.expects(:request).with(':id/module_result', { id:
|
129
|
+
described_class.expects(:request).with(':id/module_result', { id: subject.id }, :get)
|
130
130
|
.once.returns('module_result' => module_result.to_hash)
|
131
131
|
end
|
132
132
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kalibro_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Quadros Miranda
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-10-
|
14
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|