Sha256: a0cc68366435c2b1e74358f35f741cf7f83f85dfd345d7d61ed79e1bd462f9d3
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
require "test_helper" require "annotate_gem/cli" # Acts as integration test since it will actually fetch data from API class AnnotateGem::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 AnnotateGem::CLI.new.run_for_gemfile end assert_equal File.read(annotated_gemfile_path), File.read(path) end end def test_run_for_gem out, _ = capture_io do AnnotateGem::CLI.new.run_for_gem("annotate_gem") end assert_equal "Add comments to your Gemfile with each dependency's description. (https://github.com/ivantsepp/annotate_gem)\n", out end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
annotate_gem-0.0.11 | test/annotate_gem/cli_test.rb |
annotate_gem-0.0.10 | test/annotate_gem/cli_test.rb |
annotate_gem-0.0.8 | test/annotate_gem/cli_test.rb |