Atalanta / cucumber-chef

Framework for test-driven infrastructure development
http://cucumber-chef.org
Apache License 2.0
265 stars 55 forks source link

Fix templates to exec cucumber #104

Closed YungSang closed 11 years ago

YungSang commented 11 years ago

It may be a wrong way to where you are going, but I had to modify some templates to execute cucumber on Vagrant with v2.1.0.rc.12.

zpatten commented 11 years ago

Sorry everything was in flux when you grabbed master it looks like. This has been re-worked already.

zpatten commented 11 years ago

Latest master is stable now; I'm only tweaking at this point.

YungSang commented 11 years ago

Oh Thanks!

YungSang commented 11 years ago

With v2.1.0.rc.14

I'd like to let you know that I modified ssh_steps.rb as below.

drb.containers -> containers.to_a

Then /^I should( not)? see the "([^\"]*)" of "([^\"]*)" in the output$/ do |boolean, key, name|
  if (!boolean)
    @output.should =~ /#{$test_lab.containers.to_a[name][key.downcase.to_sym]}/i
  else
    @output.should_not =~ /#{$test_lab.containers.to_a[name][key.downcase.to_sym]}/i
  end
end
zpatten commented 11 years ago

Nice catch; thanks!

zpatten commented 11 years ago

rc.15 is out with the fix

YungSang commented 11 years ago

Thanks!