spec/spec_helper.rb in saviour-0.2.0 vs spec/spec_helper.rb in saviour-0.2.1

- old
+ new

@@ -31,10 +31,12 @@ Dir.mktmpdir { |dir| @tmpdir = dir example.run } end + + config.after { Fog::Mock.reset } end def with_tempfile(ext = ".jpg") Tempfile.open(["random", ext], @tmpdir) do |temp| yield(temp) @@ -75,11 +77,15 @@ def delete(path) directory.files.get(path).destroy end + def head(path) + directory.files.head(path) + end + def exists?(path) - !!directory.files.head(path) + !!head(path) end def public_url(path) directory.files.get(path).public_url end