fixed review changes

This commit is contained in:
Tharun 2020-05-19 21:41:02 +05:30
parent 84f2edc884
commit aeede8374f
3 changed files with 2 additions and 4 deletions

View File

@ -2,14 +2,12 @@
require_relative "options" require_relative "options"
require "search" require "search"
require "utils"
module Cask module Cask
class Cmd class Cmd
class AbstractCommand class AbstractCommand
include Options include Options
include Homebrew::Search include Homebrew::Search
include Utils
option "--[no-]binaries", :binaries, true option "--[no-]binaries", :binaries, true
option "--debug", :debug, false option "--debug", :debug, false

View File

@ -46,7 +46,7 @@ module Cask
def self.info(cask) def self.info(cask)
puts get_info(cask) puts get_info(cask)
Analytics.cask_output(cask) ::Utils::Analytics.cask_output(cask)
end end
def self.title_info(cask) def self.title_info(cask)

View File

@ -140,7 +140,7 @@ describe Cask::Cmd::Info, :cask do
EOS EOS
end end
it "can run be run with a url twice", :needs_network do it "can run be run with a url twice and returns analytics", :needs_network do
analytics = { analytics = {
"analytics" => { "analytics" => {
"install" => { "install" => {