test/integration/cases/apache2_cook.rb in knife-solo-0.1.0 vs test/integration/cases/apache2_cook.rb in knife-solo-0.2.0.pre1
- old
+ new
@@ -1,13 +1,11 @@
# Tries to cook with apache2 cookbook and
# verifies the "It Works!" page is present.
module Apache2Cook
def write_cheffile
File.open('Cheffile', 'w') do |f|
- f.print <<-CHEF
- site 'http://community.opscode.com/api/v1'
- cookbook 'apache2'
- CHEF
+ f.puts "site 'http://community.opscode.com/api/v1'"
+ f.puts "cookbook 'apache2'"
end
end
def http_response
Net::HTTP.get(URI.parse("http://#{server.public_ip_address}"))