test_rail_integration 0.0.7.7 → 0.0.7.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b310ed92aa66e5378977f306b21dc5037d742ded
4
- data.tar.gz: 056cb15f61c12713aee0069e4e84b321acfe807c
3
+ metadata.gz: f34c64bb41172bbe51fce0129abd95ea6c2138af
4
+ data.tar.gz: 812ea59f2e49c08e07716f89d144628bba874726
5
5
  SHA512:
6
- metadata.gz: 8ae0627d91f5f00eb1e1ee7956c8b0c10abceb801484ad001f85e7f41a36f77a7f7f58545b6130e9cdb46b52f2e6f33620a88905eddb07c44be33813ab9a974d
7
- data.tar.gz: 68ff2ee7b41b52cb4309d9eea3b4d31efdd506dd6624fe980423b8384422b63246e0747bb0dd19740d61719f3ef769d95fb9e91db6a2c13d725f6781c6519ab3
6
+ metadata.gz: bca3d20e0fe45e945123d186bb3934cca8b81486a6a6cad7618820ee362b1051f15f69ebfac91a5da8706ea7f97f503a13c72c3b7465801a6716751d9cbdf0c6
7
+ data.tar.gz: ba8980f0568b2f75bb822b55bdb538f76315d3e659c7d7d50e21c3655f47872e30fe110abc8477e5977f30fcb3a8855e57714933acaf22e55eaa31ec42f1068a
@@ -1,5 +1,6 @@
1
1
  require 'thor'
2
2
  require_relative 'generator/project'
3
+ require_relative '../test_rail_integration/generator/project/check_test_run'
3
4
 
4
5
  module TestRailIntegration
5
6
  class CLI < Thor
@@ -13,7 +14,7 @@ module TestRailIntegration
13
14
  desc "check_test_run_and_update", "Check test run statuses and update"
14
15
 
15
16
  def check_test_run_and_update
16
- check
17
+ TestRailIntegration::TestRail::CheckTestRun.check
17
18
  end
18
19
  end
19
20
  end
@@ -8,7 +8,7 @@ module TestRail
8
8
 
9
9
  class CheckTestRun
10
10
 
11
- def check
11
+ def self.check
12
12
  test_cases_id = Connection.cases_with_types
13
13
  test_cases_id.each do |test_case|
14
14
 
@@ -1,3 +1,3 @@
1
1
  module TestRailIntegration
2
- VERSION = "0.0.7.7"
2
+ VERSION = "0.0.7.8"
3
3
  end
@@ -13,7 +13,7 @@ describe 'Checking test run' do
13
13
  allow(TestRail::Connection).to receive(:get_case_info).and_return({id: 1011, "title" => 'MLP'})
14
14
  allow(TestRail::Connection).to receive(:commit_test_result).and_return([])
15
15
 
16
- test_case_result = TestRail::CheckTestRun.new.check
16
+ test_case_result = TestRail::CheckTestRun.check
17
17
  expect(test_case_result.title).to eq('MLP')
18
18
  expect(test_case_result.comment).to eq({:status => 5, :comment => "test **failed:**"})
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_rail_integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7.7
4
+ version: 0.0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirikami