Sha256: 1472c76aedfb600c06bc5b26260de870c28912a073c5a0531d59dee58f50790d
Contents?: true
Size: 326 Bytes
Versions: 3
Compression:
Stored size: 326 Bytes
Contents
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 == 'Welcome TJ, enjoy your cookie' end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
crishoj-commander-3.3.0 | spec/ui_spec.rb |
ktec-commander-3.3.1 | spec/ui_spec.rb |
commander-3.3.0 | spec/ui_spec.rb |