Multistep tests pass again.
This commit is contained in:
parent
c5eae41fd8
commit
5b87165e97
|
@ -6,7 +6,7 @@ describe Vagrant::Action::MultiStep do
|
||||||
input :obj
|
input :obj
|
||||||
output :obj
|
output :obj
|
||||||
|
|
||||||
def execute
|
def enter
|
||||||
@obj << "A"
|
@obj << "A"
|
||||||
return :obj => @obj
|
return :obj => @obj
|
||||||
end
|
end
|
||||||
|
@ -16,7 +16,7 @@ describe Vagrant::Action::MultiStep do
|
||||||
input :obj
|
input :obj
|
||||||
output :result
|
output :result
|
||||||
|
|
||||||
def execute
|
def enter
|
||||||
return :result => (@obj << "B")
|
return :result => (@obj << "B")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -31,7 +31,7 @@ describe Vagrant::Action::MultiStep do
|
||||||
|
|
||||||
it "should allow for custom inputs to pass to specific steps" do
|
it "should allow for custom inputs to pass to specific steps" do
|
||||||
step_A = Class.new(Vagrant::Action::Step) do
|
step_A = Class.new(Vagrant::Action::Step) do
|
||||||
def execute
|
def enter
|
||||||
# Do nothing.
|
# Do nothing.
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -39,7 +39,7 @@ describe Vagrant::Action::MultiStep do
|
||||||
step_B = Class.new(Vagrant::Action::Step) do
|
step_B = Class.new(Vagrant::Action::Step) do
|
||||||
input :obj
|
input :obj
|
||||||
|
|
||||||
def execute
|
def enter
|
||||||
@obj << "B"
|
@obj << "B"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -58,7 +58,7 @@ describe Vagrant::Action::MultiStep do
|
||||||
step_A = Class.new(Vagrant::Action::Step) do
|
step_A = Class.new(Vagrant::Action::Step) do
|
||||||
output :foo
|
output :foo
|
||||||
|
|
||||||
def execute
|
def enter
|
||||||
return :foo => "A"
|
return :foo => "A"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -67,7 +67,7 @@ describe Vagrant::Action::MultiStep do
|
||||||
input :from
|
input :from
|
||||||
output :value
|
output :value
|
||||||
|
|
||||||
def execute
|
def enter
|
||||||
return :value => @from
|
return :value => @from
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue