Sha256: 7a161e07df601d17ae2c91956274b5db919a512ec5370190ba1efc95302ac859
Contents?: true
Size: 678 Bytes
Versions: 6
Compression:
Stored size: 678 Bytes
Contents
require "test_helper" require "grub/cli" # Acts as integration test since it will actually fetch data from API class Grub::CLITest < Minitest::Test def test_run_for_gemfile with_gemfile(File.read(gemfile_path)) do |path| Bundler.expects(:default_gemfile).returns(path) out, _ = capture_io do Grub::CLI.new.run_for_gemfile end assert_equal File.read(grubbed_gemfile_path), File.read(path) end end def test_run_for_gem out, _ = capture_io do Grub::CLI.new.run_for_gem("grub") end assert_equal "Add comments to your Gemfile with each dependency's description. (https://github.com/ivantsepp/grub)\n", out end end
Version data entries
6 entries across 6 versions & 1 rubygems