Sha256: 6fab4a252439dae798d39d3ffd152aef907f4148e47b5e741d3e6b7a47ab254c
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
require 'spec_helper' describe Commander::UI do describe ".replace_tokens" do it "should replace tokens within a string, with hash values" do result = Commander::UI.replace_tokens 'Welcome :name, enjoy your :object'.freeze, :name => 'TJ', :object => 'cookie' result.should eq('Welcome TJ, enjoy your cookie') end end describe "progress" do it "should not die on an empty list" do exception = false begin progress([]) {} rescue exception = true end exception.should_not be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commander-4.1.0 | spec/ui_spec.rb |
commander-4.0.7 | spec/ui_spec.rb |