Sha256: 269425c6cf9a6835043d75e07945ba4bfdcb9ded5d9e388ae0a175a30577cf91
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper' class TestClass include PoolParty::Resources end describe "Remote Instance" do before(:each) do @tc = TestClass.new end it "should be a string" do @tc.has_git(:name => "gitrepos.git", :source => "git://source.git").to_string.should =~ /file \{/ end it "should included the flushed out options" do @tc.has_git({:name => "git.git", :source => "git://source.git", :user => "finger"}).to_string.should =~ /finger@git:/ end it "should not include the user if none is given" do @tc.has_git({:name => "git.git", :source => "git://source.git"}).to_string.should =~ /git clone git:/ end describe "in resource" do before(:each) do @tc.instance_eval do git(:name => "gittr") do source "git://source.git" path "/var/www/xnot.org" symlink "/var/www/xnot.org/public" end end end it "should have the path set within the resource" do @tc.resource(:git).first.to_string.should =~ /file \{/ end end end
Version data entries
4 entries across 4 versions & 2 rubygems