github-pr 0.0.91 → 0.0.92

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: 60a15376b4590b507a6b96eddca76e21d0739bfb
4
- data.tar.gz: 72102f02730440413c6e215f7dfc0443d7762350
3
+ metadata.gz: 23271e6cc2c6d7d67e12613e4481929c63447024
4
+ data.tar.gz: 652847683fcf749bace269296d3165aa9d5db798
5
5
  SHA512:
6
- metadata.gz: 76c7cf01b426dd3406c440f614fdc608a3bdf52592633d04db153ab9b25c810d717fbe47834e40d792444c3f315503e4bdda184553f6b941a1d66129ebbadbd7
7
- data.tar.gz: a6ef52910b2f8a0fb7b9782edc5f01e97f499074f97f8a28009c50facaea60eefa63b3d3d3fe8cec161f5d2aaa0b877c21e44887ff5eb57b9eedfb4aafe2931b
6
+ metadata.gz: dce2b198361ca22ccd14a5da98460990fa4557f9b7ea58a46e2c3af0ad56d44e13db00b04535f45ad24220f247be6a99df5a1a0ccee146ddbc335d8be8425be7
7
+ data.tar.gz: 3c53acd1cd49df1ce9f8010bd997ce8191b6262e93a15faa82339612a5ea6b453c28fda2abf20db88620e6d66b497a4aa8c926979d17098b08b57a8bb782fc70
@@ -5,7 +5,7 @@ module GitHubPr
5
5
  options = CLI.parse(opts)
6
6
  puts options
7
7
 
8
- poster = Poster.new(Token.create(token_file_path:File.expand_path '~/.config/gh-pr-token', direct_token: options[:token]))
8
+ poster = Poster.new(Token.create(token_file_path:File.expand_path('~/.config/gh-pr-token'), direct_token: options[:token]))
9
9
  poster.post(options)
10
10
  end
11
11
  end
@@ -28,9 +28,12 @@ module GitHubPr
28
28
  end
29
29
  end
30
30
 
31
- describe "when token" do
31
+ describe "when passed token and assagnee" do
32
32
  it "must contain assign field" do
33
- CLI.parse(['-a', 'hovox', '-g', 'sometoken'])[:token].must_equal 'sometoken'
33
+ options = CLI.parse(['-a', 'hovox', '-g', 'sometoken'])
34
+ options[:token].must_equal 'sometoken'
35
+ options[:base].must_equal 'master'
36
+
34
37
  end
35
38
  end
36
39
 
@@ -0,0 +1,17 @@
1
+ require 'minitest/autorun'
2
+ require 'github-pr/runner'
3
+
4
+ module GitHubPr
5
+
6
+ describe Runner do
7
+
8
+ describe "Check compile" do
9
+ it "must compile" do
10
+ "aaa".must_equal "aaa"
11
+ end
12
+ end
13
+
14
+
15
+ end
16
+
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.91
4
+ version: 0.0.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hovhannes Safaryan
@@ -52,6 +52,7 @@ files:
52
52
  - lib/github-pr/runner.rb
53
53
  - lib/github-pr/token.rb
54
54
  - test/test_github-pr.rb
55
+ - test/test_runner.rb
55
56
  - test/test_token.rb
56
57
  homepage: http://rubygems.org/gems/github-pr
57
58
  licenses: