Sha256: 8ee5d90ada7cb3e9e90f70c8d639189f1802eeae32b3c768abd212440c215937
Contents?: true
Size: 752 Bytes
Versions: 61
Compression:
Stored size: 752 Bytes
Contents
require "test_helper" class ShellUITest < Test::Unit::TestCase setup do @klass = Vagrant::UI::Shell @shell = mock("shell") @instance = @klass.new(vagrant_env, @shell) end context "prefixing with resource" do should "prefix message with environment resource" do @shell.expects(:say).with() do |message, color| assert message =~ /\[#{@instance.env.resource}\]/ true end @instance.info("vagrant.errors.test_key") end should "not prefix the message if given false" do @shell.expects(:say).with() do |message, color| assert message !~ /\[#{@instance.env.resource}\]/ true end @instance.info("vagrant.errors.test_key", :prefix => false) end end end
Version data entries
61 entries across 61 versions & 5 rubygems