Sha256: 8b2f09e8099e9ee3ead6af2137822a92bf4fce3b7785ef8358ab142646180fd5
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
require "test_helper" class ErrorHaltEnvActionTest < Test::Unit::TestCase setup do @klass = Vagrant::Action::Env::ErrorHalt @app, @env = mock_action_data @instance = @klass.new(@app, @env) end should "continue the chain if no error" do assert !@env.error? @app.expects(:call).with(@env).once @instance.call(@env) end should "halt the chain if an error occured" do @env.error!(:foo) @app.expects(:call).never @instance.call(@env) end end
Version data entries
4 entries across 4 versions & 2 rubygems