file_spec 0.1.2 → 0.1.3
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 +4 -4
- data/lib/file_spec.rb +3 -3
- data/lib/file_spec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e100971b1094c325dddcd09979734611ec5076e
|
4
|
+
data.tar.gz: 3a89d6e4e909214e7ce741f95848ef27c4359837
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2beb540bfe63e2f5ff5ef759e4108e9f00cd6f38228e57cc9f90806b66d14a8c169773ef355845c472fe6a54b8043b4b1b7a0c75283d50312d5d665cc7e010
|
7
|
+
data.tar.gz: f1d44fe56826526caf40c3929734d237488fd953492785398e4c10e305cacbebb7ccf0e207cac14ce7fe3f5a45ef162647350e6c851c6325361fa4e5f2b55d92
|
data/lib/file_spec.rb
CHANGED
@@ -84,8 +84,8 @@ module FileSpec
|
|
84
84
|
# @param opts [Hash] additional options passed to {#diff}
|
85
85
|
def record_changes(path, **opts)
|
86
86
|
tmp_path = Dir.mktmpdir("file_spec")
|
87
|
-
before_path = File.join(tmp_path, "
|
88
|
-
after_path = File.join(tmp_path, "
|
87
|
+
before_path = File.join(tmp_path, "a")
|
88
|
+
after_path = File.join(tmp_path, "b")
|
89
89
|
|
90
90
|
if File.file?(path)
|
91
91
|
mkdir before_path
|
@@ -96,7 +96,7 @@ module FileSpec
|
|
96
96
|
yield
|
97
97
|
FileUtils.cp_r(path, after_path)
|
98
98
|
|
99
|
-
diff("
|
99
|
+
diff("a", "b", chdir: tmp_path, **opts)
|
100
100
|
ensure
|
101
101
|
FileUtils.rm_rf(tmp_path)
|
102
102
|
end
|
data/lib/file_spec/version.rb
CHANGED