httpotemkin 0.0.3 → 0.0.4

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: 48d695b887bf805db229dfd7b257639a3f98af12
4
- data.tar.gz: d1469f40788c40ad3fd2944cf938895b5d886ca1
3
+ metadata.gz: d346656643300dfe4af065152bdf110f7ed3c1dd
4
+ data.tar.gz: aa3c3f535945b1a7c70e3838317f4a7bf3154c2d
5
5
  SHA512:
6
- metadata.gz: 2d2145a1c62b5c6fd0285596d1e0b1e39344712d7058fe099c473412c6a4106dc1cb5b1422b2f55a334e4a1d0780f00af63f54e39e041d502d71e3b4fd9ab4ad
7
- data.tar.gz: fb127a608dd4192ce60600aca6691723dd8ce9583878fa8aeff487669f420e100d23701a6d550fc0a1d21c6bf7f8c4f9ac1c2b09996c63ad9a51ff90968a7ff2
6
+ metadata.gz: fd8c1fe49944320570bc0cc8a6a3ceabeda42e496f8d9a433253d6d36e1cf4bebebe572a90a2326f38debc0335505548b1f97f1533112b93fc08cab71e844adf
7
+ data.tar.gz: 9cde05e2d38d56c977b90204eed7a3b26f0ffd5cae3b458f280a0a9bb9b3c7d6150a9e1af74979dd49a94b59b968ceccd53e976106e81291c4c32986c0ffa5ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change log of httpotemkin
2
2
 
3
+ ## Version 0.0.4
4
+
5
+ * Add command to stop client container in RSpec tests
6
+
3
7
  ## Version 0.0.3
4
8
 
5
9
  * Capture stderr and exit code when running commands on the client
@@ -27,4 +27,8 @@ RUN mkdir /root/.gem
27
27
  RUN echo ":rubygems_api_key: 123" >/root/.gem/credentials
28
28
  RUN chmod 0600 /root/.gem/credentials
29
29
 
30
+ # Configuration for git
31
+ RUN git config --global user.email "hw@example.com"
32
+ RUN git config --global user.name "Hans Wurst"
33
+
30
34
  CMD /run_test.rb
data/lib/test.rb CHANGED
@@ -33,5 +33,9 @@ module Httpotemkin
33
33
  @containers.start_client
34
34
  Client.new(@containers)
35
35
  end
36
+
37
+ def stop_client
38
+ @containers.stop_client
39
+ end
36
40
  end
37
41
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Httpotemkin
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -82,4 +82,13 @@ describe "client" do
82
82
  expect(client.err).to eq("ls: cannot access iamnothere: No such file or directory\n")
83
83
  end
84
84
  end
85
+
86
+ it "starts and stops the client container" do
87
+ out = double
88
+ allow(out).to receive(:puts)
89
+
90
+ test = Httpotemkin::Test.new(out: out)
91
+ test.start_client
92
+ test.stop_client
93
+ end
85
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpotemkin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cornelius Schumacher