mortar 0.7.6 → 0.7.7
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.
- data/lib/mortar/local/pig.rb +1 -1
- data/lib/mortar/version.rb +1 -1
- data/spec/mortar/local/pig_spec.rb +17 -0
- metadata +3 -3
data/lib/mortar/local/pig.rb
CHANGED
data/lib/mortar/version.rb
CHANGED
@@ -201,5 +201,22 @@ module Mortar::Local
|
|
201
201
|
|
202
202
|
end
|
203
203
|
|
204
|
+
context "reset_local_logs" do
|
205
|
+
|
206
|
+
it "removes the directory if it exists" do
|
207
|
+
pig = Mortar::Local::Pig.new
|
208
|
+
marker_file = pig.local_log_dir + "/marker-file"
|
209
|
+
FakeFS do
|
210
|
+
FileUtils.mkdir_p(pig.local_log_dir)
|
211
|
+
FileUtils.touch(marker_file)
|
212
|
+
expect(File.exists?(marker_file)).to be_true
|
213
|
+
pig.reset_local_logs
|
214
|
+
expect(File.exists?(marker_file)).to be_false
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
|
204
221
|
end
|
205
222
|
end
|
metadata
CHANGED