require File.dirname(__FILE__) + '/bin_spec_helper' require "poolparty" class PuppetResolverSpec end describe "Server list active binary" do describe "with real cloud" do before(:each) do ::PoolParty::Plugin::Haproxy.stub!(:new).and_return nil $pool_specfile = __FILE__ @p = PoolParty::Pool::Pool.load_from_file "#{::File.dirname(__FILE__)}/fixtures/bin_cloud_for_test.rb" @pool_hash = @p.to_properties_hash end it "should have the name on the schema" do @pool_hash[:options][:name].should == :binary_testing_cloud end it "should have the remoter base available" do @pool_hash[:options][:remoter_base].should_not be_nil end end end