rspec-shell-expectations 1.0.0.pre.beta → 1.0.0.pre.beta.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e83ad855493012097542de18d65fddc610e0a87
|
4
|
+
data.tar.gz: 85fd8c655908fafff1bb40b9b2e639d166b29e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ce9f67f512b110dffeed3ead074063b661245ceb383c77633bb9d81723ccc734b7267f2c9973f378c952862e73ee61d7605480e547be4034750a0f57a43f70
|
7
|
+
data.tar.gz: 95dc5d3ec108879415d5ab6fa3a6e9e38ba4bbad8d3f9c56a4d7ce1721f1192928329f11d1a517cf5dea13e23c623d1606e301d939ee19dee6ef9d9f305b0ca6
|
@@ -6,7 +6,7 @@ module Rspec
|
|
6
6
|
class StubbedCommand
|
7
7
|
def initialize(command, dir)
|
8
8
|
@dir, @command = dir, command
|
9
|
-
FileUtils.cp(
|
9
|
+
FileUtils.cp(stub_filepath, File.join(dir, command))
|
10
10
|
@call_configuration = CallConfiguration.new(
|
11
11
|
Pathname.new(dir).join("#{command}_stub.yml")
|
12
12
|
)
|
@@ -38,6 +38,17 @@ module Rspec
|
|
38
38
|
def outputs(contents, to: :stdout)
|
39
39
|
with_args.outputs(contents, to: to)
|
40
40
|
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def stub_filepath
|
45
|
+
project_root.join('bin', 'stub')
|
46
|
+
end
|
47
|
+
|
48
|
+
def project_root
|
49
|
+
Pathname.new(File.dirname(File.expand_path(__FILE__)))
|
50
|
+
.join('..', '..', '..', '..')
|
51
|
+
end
|
41
52
|
end
|
42
53
|
end
|
43
54
|
end
|