Commit afc06710 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[RuboCop] Clean up spec stub

parent eb8bc5a6
...@@ -9,7 +9,7 @@ module Pod ...@@ -9,7 +9,7 @@ module Pod
@request = Downloader::Request.new(:spec => @spec, :released => true) @request = Downloader::Request.new(:spec => @spec, :released => true)
@unreleased_request = Downloader::Request.new(:name => 'BananaLib', :params => @spec.source) @unreleased_request = Downloader::Request.new(:name => 'BananaLib', :params => @spec.source)
@stub_download = lambda do |cache, &blk| @stub_download = lambda do |cache, &blk|
cache.define_singleton_method(:download) do |name, target, params, head| cache.define_singleton_method(:download) do |_name, target, _params, _head|
FileUtils.mkdir_p target FileUtils.mkdir_p target
Dir.chdir(target) { blk.call } Dir.chdir(target) { blk.call }
end end
...@@ -62,7 +62,7 @@ module Pod ...@@ -62,7 +62,7 @@ module Pod
path_for_pod.mkpath path_for_pod.mkpath
Dir.chdir(path_for_pod) do Dir.chdir(path_for_pod) do
FileUtils.mkdir_p 'Classes' FileUtils.mkdir_p 'Classes'
File.open('Classes/a.m', 'w') { } File.open('Classes/a.m', 'w') {}
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment