Skip to content

Commit

Permalink
Rubocop style fixes.
Browse files Browse the repository at this point in the history
As the upstream Homebrew rules were changed.
  • Loading branch information
MikeMcQuaid committed Feb 21, 2017
1 parent a187585 commit b49f062
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Gemfile
@@ -1,8 +1,8 @@
source "https://rubygems.org"

group :test do
gem "rspec"
gem "codecov"
gem "rake"
gem "rspec"
gem "simplecov"
gem "codecov"
end
10 changes: 5 additions & 5 deletions spec/brew_dumper_spec.rb
Expand Up @@ -48,7 +48,7 @@
"requirements" => [],
"options" => [],
"bottle" => {},
}]
}],
)
end
subject { Bundle::BrewDumper }
Expand All @@ -68,7 +68,7 @@
requirements: [],
conflicts_with: [],
pinned?: false,
outdated?: false
outdated?: false,
)
end
end
Expand Down Expand Up @@ -101,7 +101,7 @@
"caveats" => nil,
"requirements" => [],
"options" => [],
"bottle" => {}
"bottle" => {},
)
allow(Formula).to receive(:installed).and_return(
[
Expand Down Expand Up @@ -161,7 +161,7 @@
"pinned" => true,
"outdated" => true,
},
]
],
)
end
subject { Bundle::BrewDumper }
Expand Down Expand Up @@ -197,7 +197,7 @@
requirements: [],
conflicts_with: [],
pinned?: true,
outdated?: true
outdated?: true,
)
end

Expand Down
7 changes: 4 additions & 3 deletions spec/brew_installer_spec.rb
Expand Up @@ -37,7 +37,8 @@ def do_install
context "conflicts_with option is provided" do
before do
expect(Bundle::BrewDumper).to receive(:formula_info).and_return(
name: "mysql", conflicts_with: ["mysql55"]
name: "mysql",
conflicts_with: ["mysql55"],
)
allow(Bundle::BrewInstaller).to receive(:formula_installed?).and_return(true)
allow_any_instance_of(Bundle::BrewInstaller).to receive(:install).and_return(true)
Expand Down Expand Up @@ -69,7 +70,7 @@ def do_install
{ name: "a", outdated?: true },
{ name: "b", outdated?: true },
{ name: "c", outdated?: false },
]
],
)
expect(Bundle::BrewInstaller.outdated_formulae).to eql(%w[a b])
end
Expand All @@ -83,7 +84,7 @@ def do_install
{ name: "a", pinned?: true },
{ name: "b", pinned?: true },
{ name: "c", pinned?: false },
]
],
)
expect(Bundle::BrewInstaller.pinned_formulae).to eql(%w[a b])
end
Expand Down
3 changes: 1 addition & 2 deletions spec/spec_helper.rb
Expand Up @@ -43,8 +43,7 @@ def require(path)
module Formatter
module_function

def columns(*)
end
def columns(*); end

def success(*args)
args
Expand Down

0 comments on commit b49f062

Please sign in to comment.