spec/command/plugins/create_spec.rb in cocoapods-plugins-0.4.1 vs spec/command/plugins/create_spec.rb in cocoapods-plugins-0.4.2

- old
+ new

@@ -66,11 +66,11 @@ it 'should download the default template repository' do @command = create_command('cocoapods-banana') template_repo = 'https://github.com/CocoaPods/' \ 'cocoapods-plugin-template.git' - git_command = "clone '#{template_repo}' cocoapods-banana" + git_command = ['clone', template_repo, 'cocoapods-banana'] @command.expects(:git!).with(git_command) @command.expects(:configure_template) @command.run UI.output.should.include('Creating `cocoapods-banana` plugin') end @@ -78,10 +78,10 @@ it 'should download the passed in template repository' do alt_repo = 'https://github.com/CocoaPods/' \ 'cocoapods-banana-plugin-template.git' @command = create_command('cocoapods-banana', alt_repo) - @command.expects(:git!).with("clone '#{alt_repo}' cocoapods-banana") + @command.expects(:git!).with(['clone', alt_repo, 'cocoapods-banana']) @command.expects(:configure_template) @command.run UI.output.should.include('Creating `cocoapods-banana` plugin') end end