Sha256: f1b7eb304b1d503b45dd99426291175cc14195e7462aa569418c40735d203014
Contents?: true
Size: 871 Bytes
Versions: 3
Compression:
Stored size: 871 Bytes
Contents
Given /^I want to fake out the boot sequence of Recipes$/ do base_path = File.join(File.dirname(__FILE__) + "/../../fixtures/Recipes_boot_sequence/") FakeWeb.register_uri(:get, "http://app-master-hostname.compute-1.amazonaws.com/", [ {:body => File.read(base_path + "pre_Recipes_booting.html")}, {:body => File.read(base_path + "Recipes_booting.html")}, {:body => File.read(base_path + "Recipes_ready.html")} ]) end Given /^I have public key "([^"]*)" on host "([^"]*)"$/ do |public_key_value, host| mock_target = File.expand_path("../../../tmp/scp_mock", __FILE__) File.open(mock_target, "w") { |file| file << public_key_value } end Given /^I set "([^"]*)" as the default Recipes server$/ do |host| require "Recipes" require "Recipes/config" Recipes::Api.setup_base_url(:host => host, :port => 80) Recipes::Api.send(:cache_base_uri) end
Version data entries
3 entries across 3 versions & 1 rubygems