diff options
| author | Markus Reiter | 2016-10-14 20:33:16 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-23 14:32:04 +0200 |
| commit | ad8ae33c1f2bf09cf70944aba0708000adce93e1 (patch) | |
| tree | 855ff4c86c4d08af0bb6b40d5d3d055f5e7ae993 /Library/Homebrew/cask/test | |
| parent | 2b7e6c1dcb2e1aa8416b9b26d1a3d77b68f65013 (diff) | |
| download | brew-ad8ae33c1f2bf09cf70944aba0708000adce93e1.tar.bz2 | |
Fix spacing and indentation.
Diffstat (limited to 'Library/Homebrew/cask/test')
| -rw-r--r-- | Library/Homebrew/cask/test/cask/cli/create_test.rb | 16 | ||||
| -rw-r--r-- | Library/Homebrew/cask/test/cask/cli/edit_test.rb | 8 | ||||
| -rw-r--r-- | Library/Homebrew/cask/test/cask/cli/home_test.rb | 14 | ||||
| -rw-r--r-- | Library/Homebrew/cask/test/cask/dsl_test.rb | 16 | ||||
| -rw-r--r-- | Library/Homebrew/cask/test/plist/parser_test.rb | 8 |
5 files changed, 31 insertions, 31 deletions
diff --git a/Library/Homebrew/cask/test/cask/cli/create_test.rb b/Library/Homebrew/cask/test/cask/cli/create_test.rb index 06c2d203c..c4e175915 100644 --- a/Library/Homebrew/cask/test/cask/cli/create_test.rb +++ b/Library/Homebrew/cask/test/cask/cli/create_test.rb @@ -34,8 +34,8 @@ describe Hbc::CLI::Create do it "opens the editor for the specified Cask" do Hbc::CLI::Create.run("new-cask") Hbc::CLI::Create.editor_commands.must_equal [ - [Hbc.path("new-cask")], - ] + [Hbc.path("new-cask")], + ] end it "drops a template down for the specified Cask" do @@ -58,15 +58,15 @@ describe Hbc::CLI::Create do it "throws away additional Cask arguments and uses the first" do Hbc::CLI::Create.run("additional-cask", "another-cask") Hbc::CLI::Create.editor_commands.must_equal [ - [Hbc.path("additional-cask")], - ] + [Hbc.path("additional-cask")], + ] end it "throws away stray options" do Hbc::CLI::Create.run("--notavalidoption", "yet-another-cask") Hbc::CLI::Create.editor_commands.must_equal [ - [Hbc.path("yet-another-cask")], - ] + [Hbc.path("yet-another-cask")], + ] end it "raises an exception when the Cask already exists" do @@ -78,8 +78,8 @@ describe Hbc::CLI::Create do it "allows creating Casks that are substrings of existing Casks" do Hbc::CLI::Create.run("feine") Hbc::CLI::Create.editor_commands.must_equal [ - [Hbc.path("feine")], - ] + [Hbc.path("feine")], + ] end describe "when no Cask is specified" do diff --git a/Library/Homebrew/cask/test/cask/cli/edit_test.rb b/Library/Homebrew/cask/test/cask/cli/edit_test.rb index 3f385eb33..6eb2289c0 100644 --- a/Library/Homebrew/cask/test/cask/cli/edit_test.rb +++ b/Library/Homebrew/cask/test/cask/cli/edit_test.rb @@ -27,15 +27,15 @@ describe Hbc::CLI::Edit do it "opens the editor for the specified Cask" do Hbc::CLI::Edit.run("alfred") Hbc::CLI::Edit.editor_commands.must_equal [ - [Hbc.path("alfred")], - ] + [Hbc.path("alfred")], + ] end it "throws away additional arguments and uses the first" do Hbc::CLI::Edit.run("adium", "alfred") Hbc::CLI::Edit.editor_commands.must_equal [ - [Hbc.path("adium")], - ] + [Hbc.path("adium")], + ] end it "raises an exception when the Cask doesnt exist" do diff --git a/Library/Homebrew/cask/test/cask/cli/home_test.rb b/Library/Homebrew/cask/test/cask/cli/home_test.rb index 78302abd1..67bcb024a 100644 --- a/Library/Homebrew/cask/test/cask/cli/home_test.rb +++ b/Library/Homebrew/cask/test/cask/cli/home_test.rb @@ -27,22 +27,22 @@ describe Hbc::CLI::Home do it "opens the homepage for the specified Cask" do Hbc::CLI::Home.run("alfred") Hbc::CLI::Home.system_commands.must_equal [ - ["/usr/bin/open", "--", "https://www.alfredapp.com/"], - ] + ["/usr/bin/open", "--", "https://www.alfredapp.com/"], + ] end it "works for multiple Casks" do Hbc::CLI::Home.run("alfred", "adium") Hbc::CLI::Home.system_commands.must_equal [ - ["/usr/bin/open", "--", "https://www.alfredapp.com/"], - ["/usr/bin/open", "--", "https://www.adium.im/"], - ] + ["/usr/bin/open", "--", "https://www.alfredapp.com/"], + ["/usr/bin/open", "--", "https://www.adium.im/"], + ] end it "opens the project page when no Cask is specified" do Hbc::CLI::Home.run Hbc::CLI::Home.system_commands.must_equal [ - ["/usr/bin/open", "--", "http://caskroom.io/"], - ] + ["/usr/bin/open", "--", "http://caskroom.io/"], + ] end end diff --git a/Library/Homebrew/cask/test/cask/dsl_test.rb b/Library/Homebrew/cask/test/cask/dsl_test.rb index d062875fa..adcdc4665 100644 --- a/Library/Homebrew/cask/test/cask/dsl_test.rb +++ b/Library/Homebrew/cask/test/cask/dsl_test.rb @@ -88,8 +88,8 @@ describe Hbc::DSL do end cask.name.must_equal [ - "Proper Name", - ] + "Proper Name", + ] end it "Accepts an array value to the name stanza" do @@ -98,9 +98,9 @@ describe Hbc::DSL do end cask.name.must_equal [ - "Proper Name", - "Alternate Name", - ] + "Proper Name", + "Alternate Name", + ] end it "Accepts multiple name stanzas" do @@ -110,9 +110,9 @@ describe Hbc::DSL do end cask.name.must_equal [ - "Proper Name", - "Alternate Name", - ] + "Proper Name", + "Alternate Name", + ] end end diff --git a/Library/Homebrew/cask/test/plist/parser_test.rb b/Library/Homebrew/cask/test/plist/parser_test.rb index 173541a72..7f844e377 100644 --- a/Library/Homebrew/cask/test/plist/parser_test.rb +++ b/Library/Homebrew/cask/test/plist/parser_test.rb @@ -53,10 +53,10 @@ describe Plist do parsed.keys.must_equal ["system-entities"] parsed["system-entities"].length.must_equal 3 parsed["system-entities"].map { |e| e["dev-entry"] }.must_equal %w[ - /dev/disk3s1 - /dev/disk3 - /dev/disk3s2 - ] + /dev/disk3s1 + /dev/disk3 + /dev/disk3s2 + ] end it "does not choke on empty input" do |
