Sha256: 610fea10b866242852b6e332fbfe6915174c1c09e3285dd042caf86e661ed299
Contents?: true
Size: 917 Bytes
Versions: 3
Compression:
Stored size: 917 Bytes
Contents
require "test_helper" describe "bin/vanity" do it "responds to version" do proc { IO.any_instance.expects(:puts) ARGV.clear ARGV << '--version' load "bin/vanity" }.must_raise SystemExit end it "responds to help" do proc { IO.any_instance.expects(:puts) ARGV.clear ARGV << '--help' load "bin/vanity" }.must_raise SystemExit end it "responds to list" do require "vanity/commands/list" Vanity::Commands.expects(:list) ARGV.clear ARGV << 'list' load "bin/vanity" end it "responds to report" do require "vanity/commands/report" Vanity::Commands.expects(:report) ARGV.clear ARGV << 'report' load "bin/vanity" end it "responds to unknown commands" do require "vanity/commands/upgrade" Vanity::Commands.expects(:upgrade) ARGV.clear ARGV << 'upgrade' load "bin/vanity" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vanity-2.0.0.beta3 | test/cli_test.rb |
vanity-2.0.0.beta2 | test/cli_test.rb |
vanity-2.0.0.beta | test/cli_test.rb |