Sha256: 3569893398a3b1a6bd9a6b0035f3dc538fa51750a4e09ff2721abed8bb571b94

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

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

describe "Provider" do
  before(:each) do
    @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 & 2 rubygems

Version Path
auser-poolparty-0.0.8 spec/provider_spec.rb
dreadpiratepj-poolparty-0.0.8 spec/provider_spec.rb