gem_publisher 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gem_publisher/cli_facade.rb +1 -1
- data/lib/gem_publisher/version.rb +1 -1
- data/test/cli_facade_test.rb +15 -0
- data/test/common.rb +1 -1
- metadata +8 -8
data/test/cli_facade_test.rb
CHANGED
@@ -11,6 +11,21 @@ module GemPublisher
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
+
def test_should_include_all_output_in_error
|
15
|
+
status = stub(exitstatus: 1)
|
16
|
+
Open3.stubs(:capture3).returns(["stdout", "stderr", status])
|
17
|
+
err = assert_raises CliFacade::Error do
|
18
|
+
CliFacade.new.execute("status")
|
19
|
+
end
|
20
|
+
assert_equal "stderr\nstdout", err.message
|
21
|
+
|
22
|
+
Open3.stubs(:capture3).returns(["stdout", "", status])
|
23
|
+
err = assert_raises CliFacade::Error do
|
24
|
+
CliFacade.new.execute("status")
|
25
|
+
end
|
26
|
+
assert_equal "stdout", err.message
|
27
|
+
end
|
28
|
+
|
14
29
|
def test_should_return_stdout_if_command_succeeded
|
15
30
|
status = stub(exitstatus: 0)
|
16
31
|
Open3.stubs(:capture3).returns(["stdout", "stderr", status])
|
data/test/common.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mocha
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.14.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.14.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rake
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
segments:
|
83
83
|
- 0
|
84
|
-
hash: -
|
84
|
+
hash: -113103099571362151
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash: -
|
93
|
+
hash: -113103099571362151
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
96
|
rubygems_version: 1.8.23
|