aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/spec
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-14 20:33:16 +0200
committerMarkus Reiter2016-10-23 14:32:04 +0200
commitad8ae33c1f2bf09cf70944aba0708000adce93e1 (patch)
tree855ff4c86c4d08af0bb6b40d5d3d055f5e7ae993 /Library/Homebrew/cask/spec
parent2b7e6c1dcb2e1aa8416b9b26d1a3d77b68f65013 (diff)
downloadbrew-ad8ae33c1f2bf09cf70944aba0708000adce93e1.tar.bz2
Fix spacing and indentation.
Diffstat (limited to 'Library/Homebrew/cask/spec')
-rw-r--r--Library/Homebrew/cask/spec/cask/cli/cleanup_spec.rb6
-rw-r--r--Library/Homebrew/cask/spec/cask/download_strategy_spec.rb78
-rw-r--r--Library/Homebrew/cask/spec/cask/system_command_spec.rb12
-rw-r--r--Library/Homebrew/cask/spec/locale_spec.rb2
4 files changed, 49 insertions, 49 deletions
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