brew/Library/Homebrew/test/dev-cmd/livecheck_spec.rb
nandahkrishna e5fe57c1fe
Migrate livecheck to Homebrew/brew
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Co-authored-by: Thierry Moisan <thierry.moisan@gmail.com>
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
Co-authored-by: Issy Long <me@issyl0.co.uk>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Seeker <meaningseeking@protonmail.com>
2020-08-31 17:08:28 +05:30

24 lines
605 B
Ruby

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "Homebrew.livecheck_args" do
it_behaves_like "parseable arguments"
end
describe "brew livecheck", :integration_test do
it "reports the latest version of a Formula", :needs_network do
content = <<~RUBY
desc "Some test"
homepage "https://github.com/Homebrew/brew"
url "https://brew.sh/test-1.0.0.tgz"
RUBY
setup_test_formula("test", content)
expect { brew "livecheck", "test" }
.to output(/test : /).to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end