Commit 1403cead authored by Orta Therox's avatar Orta Therox

Remove the new spec file, fix the existing spec

parent f001a4c0
......@@ -34,7 +34,7 @@ module Pod
dir = SpecHelper.temporary_directory + 'TestPod'
dir.mkpath
File.stubs(:exist?).with('configure').returns(true)
@sut.any_instance.expects(:system).with({ 'COCOAPODS_VERSION' => Pod::Version }, './configure', 'TestPod', 'foo').once
@sut.any_instance.expects(:system).with({ 'COCOAPODS_VERSION' => Pod::VERSION }, './configure', 'TestPod', 'foo').once
run_command('lib', 'create', 'TestPod', 'foo', '--verbose')
end
......
require File.expand_path('../../../spec_helper', __FILE__)
module Pod
class Command
class Lib
describe Create do
before do
@create = Create.new(CLAide::ARGV.new(['libname']))
end
it 'passes the Pod::VERSION when there is a configure script' do
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
Dir.mkdir('libname')
File.write('libname/configure', '')
@create.expects(:system).with({ 'COCOAPODS_VERSION' => Pod::VERSION }, './configure', 'libname', nil)
@create.send(:configure_template)
end
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