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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dbf2ac51375c86cb7e1f7cf8a3aab2a28c530b4
4
- data.tar.gz: fdb92022806ccb9a35b1e0b3b2124282494e2fac
3
+ metadata.gz: bf7ddc7b8e7edd2848fe20500cf46232ab12c81f
4
+ data.tar.gz: ef4bce5837524dc3b06af9c260045aedb23cbc32
5
5
  SHA512:
6
- metadata.gz: 3066c33f39ddd5712c30dfa85b08270cc08a18e65646d97ce6c69c5c22cb9bf9106078099c22aa23a4516bb3f150a24d94da1e9c98afe180f80cc21fac0ea216
7
- data.tar.gz: b468950f31c0d32770e3198dc4f878e3e337875f05796df9c25c654895073474eb92a27f389a82a73167d7a196aae5d9aeb1735645eba32a2ea4f57819cb5067
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 a module result
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 a module result$/) do
45
- expect(@module_result).to be_a(KalibroClient::Entities::Processor::ModuleResult)
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: @module_result_id }, :get)['module_result']
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
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroClient
18
- VERSION = "2.1.0"
18
+ VERSION = "2.1.1"
19
19
  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: module_result.id }, :get)
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: different_id }, :get)
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: module_result.id }, :get)
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
 
@@ -22,7 +22,7 @@ FactoryGirl.define do
22
22
  processing_id 1
23
23
 
24
24
  trait :with_id do
25
- id 42
25
+ id 32
26
26
  end
27
27
 
28
28
  trait :with_kalibro_module do
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.0
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-15 00:00:00.000000000 Z
14
+ date: 2015-10-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler