From ad8ae33c1f2bf09cf70944aba0708000adce93e1 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 14 Oct 2016 20:33:16 +0200 Subject: Fix spacing and indentation. --- .../Homebrew/cask/spec/cask/cli/cleanup_spec.rb | 6 +- .../cask/spec/cask/download_strategy_spec.rb | 78 +++++++++++----------- .../Homebrew/cask/spec/cask/system_command_spec.rb | 12 ++-- Library/Homebrew/cask/spec/locale_spec.rb | 2 +- 4 files changed, 49 insertions(+), 49 deletions(-) (limited to 'Library/Homebrew/cask/spec') diff --git a/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb b/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb index 58ce5b7a3..2f4028e2a 100644 --- a/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb +++ b/Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb @@ -13,9 +13,9 @@ describe Hbc::CLI::Cleanup do cleaned_up_cached_download = "caffeine" cached_downloads = [ - cache_location.join("#{cleaned_up_cached_download}--latest.zip"), - cache_location.join("transmission--2.61.dmg"), - ] + cache_location.join("#{cleaned_up_cached_download}--latest.zip"), + cache_location.join("transmission--2.61.dmg"), + ] cached_downloads.each(&FileUtils.method(:touch)) diff --git a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb index f867dc19f..d6c28bbd1 100644 --- a/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb +++ b/Library/Homebrew/cask/spec/cask/download_strategy_spec.rb @@ -68,9 +68,9 @@ describe "download strategies" do let(:url_options) { { cookies: { - coo: "kie", - mon: "ster", - }, + coo: "kie", + mon: "ster", + }, } } @@ -114,9 +114,9 @@ describe "download strategies" do { using: :post, data: { - form: "data", - is: "good", - }, + form: "data", + is: "good", + }, } } @@ -190,13 +190,13 @@ describe "download strategies" do expect(fake_system_command).to have_received(:run!).with( "/usr/bin/svn", hash_including(args: [ - "checkout", - "--force", - "--config-option", - "config:miscellany:use-commit-times=yes", - cask.url.to_s, - downloader.cached_location, - ]) + "checkout", + "--force", + "--config-option", + "config:miscellany:use-commit-times=yes", + cask.url.to_s, + downloader.cached_location, + ]) ) end @@ -218,15 +218,15 @@ describe "download strategies" do expect(fake_system_command).to have_received(:run!).with( "/usr/bin/svn", hash_including(args: [ - "checkout", - "--force", - "--config-option", - "config:miscellany:use-commit-times=yes", - "--trust-server-cert", - "--non-interactive", - cask.url.to_s, - downloader.cached_location, - ]) + "checkout", + "--force", + "--config-option", + "config:miscellany:use-commit-times=yes", + "--trust-server-cert", + "--non-interactive", + cask.url.to_s, + downloader.cached_location, + ]) ) end end @@ -249,15 +249,15 @@ describe "download strategies" do expect(fake_system_command).to have_received(:run!).with( "/usr/bin/svn", hash_including(args: [ - "checkout", - "--force", - "--config-option", - "config:miscellany:use-commit-times=yes", - cask.url.to_s, - downloader.cached_location, - "-r", - "10", - ]) + "checkout", + "--force", + "--config-option", + "config:miscellany:use-commit-times=yes", + cask.url.to_s, + downloader.cached_location, + "-r", + "10", + ]) ) end end @@ -276,14 +276,14 @@ describe "download strategies" do expect(fake_system_command).to have_received(:run!).with( "/usr/bin/tar", hash_including(args: [ - '-s/^\\.//', - "--exclude", - ".svn", - "-cf", - downloader.tarball_path, - "--", - ".", - ]) + '-s/^\\.//', + "--exclude", + ".svn", + "-cf", + downloader.tarball_path, + "--", + ".", + ]) ) end end diff --git a/Library/Homebrew/cask/spec/cask/system_command_spec.rb b/Library/Homebrew/cask/spec/cask/system_command_spec.rb index be70cb5e7..3f9f8ac2b 100644 --- a/Library/Homebrew/cask/spec/cask/system_command_spec.rb +++ b/Library/Homebrew/cask/spec/cask/system_command_spec.rb @@ -49,9 +49,9 @@ describe Hbc::SystemCommand do let(:command) { "/bin/bash" } let(:options) { { args: [ - "-c", - "for i in $(seq 1 2 5); do echo $i; echo $(($i + 1)) >&2; done", - ] } + "-c", + "for i in $(seq 1 2 5); do echo $i; echo $(($i + 1)) >&2; done", + ] } } shared_examples "it returns '1 2 3 4 5 6'" do @@ -125,9 +125,9 @@ describe Hbc::SystemCommand do let(:command) { "/bin/bash" } let(:options) { { args: [ - "-c", - "for i in $(seq 1 2 100000); do echo $i; echo $(($i + 1)) >&2; done", - ] } + "-c", + "for i in $(seq 1 2 100000); do echo $i; echo $(($i + 1)) >&2; done", + ] } } it "returns without deadlocking" do diff --git a/Library/Homebrew/cask/spec/locale_spec.rb b/Library/Homebrew/cask/spec/locale_spec.rb index 69914e23c..41ca87ede 100644 --- a/Library/Homebrew/cask/spec/locale_spec.rb +++ b/Library/Homebrew/cask/spec/locale_spec.rb @@ -11,7 +11,7 @@ describe Locale do context "raises a ParserError when given" do it "an empty string" do - expect{ described_class.parse("") }.to raise_error(Locale::ParserError) + expect { described_class.parse("") }.to raise_error(Locale::ParserError) end it "a string in a wrong format" do -- cgit v1.2.3