Sha256: b5ff6e29fa774a7cafa2c6e58b12632ad7bf62f535a321eea6eb037e6d12d08a

Contents?: true

Size: 569 Bytes

Versions: 2

Compression:

Stored size: 569 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe "Provider" do
  before(:each) do
    stub_option_load
    @ips = ["127.0.0.1"]
  end
  it "should be able to make a roles from the ips" do
    Provider.string_roles_from_ips(@ips).should == "role :app, '127.0.0.1'"
  end
  describe "running" do
    it "should be able to run with the provided packages" do
      Sprinkle::Script.should_receive(:sprinkle).once.and_return true
      Provider.should_receive(:string_roles_from_ips).with(@ips).and_return ""
      Provider.install_poolparty(@ips)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auser-poolparty-0.0.9 spec/provider_spec.rb
auser-poolparty-0.1.0 spec/provider_spec.rb