Skip to content
Snippets Groups Projects
Commit eac60b08 authored by Markus Reiter's avatar Markus Reiter
Browse files

Add test for RuboCop `$LOAD_PATH`.

parent eca488a9
No related branches found
No related tags found
No related merge requests found
require "open3"
describe "RuboCop" do
context "when calling `rubocop` outside of the Homebrew environment" do
before do
ENV.keys.each do |key|
ENV.delete(key) if key.start_with?("HOMEBREW_")
end
ENV["XDG_CACHE_HOME"] = "#{HOMEBREW_CACHE}/style"
end
it "loads all Formula cops without errors" do
_, _, status = Open3.capture3("rubocop", TEST_FIXTURE_DIR/"testball.rb")
expect(status).to be_a_success
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment