Sha256: a6213f33ab3368044c443cf433ca13ff6f8a6628bf808d13e7e08797a96ac5a5
Contents?: true
Size: 512 Bytes
Versions: 3
Compression:
Stored size: 512 Bytes
Contents
require_relative "../../../test_helper" require "thor" module Troo module CLI describe ThorFixes do let(:described_class) { ThorFixes } describe ".banner" do let(:command) { OpenStruct.new(usage: "some usage") } before { File.stubs(:basename).returns("troo") } subject { described_class.banner(command) } it "should override Thor to provide proper subcommand help" do subject.must_equal("troo some usage") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.4 | test/lib/troo/cli/thor_fixes_test.rb |
troo-0.0.3 | test/lib/troo/cli/thor_fixes_test.rb |
troo-0.0.2 | test/lib/troo/cli/thor_fixes_test.rb |