Sha256: dd16f9ddfe026b115c744618aaabf518207e4563e6318459a282aba848cccf67
Contents?: true
Size: 1.32 KB
Versions: 11
Compression:
Stored size: 1.32 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper' include PoolParty::Resources class TestGitClass include PoolParty::Resources def options(h={}) {} end end describe "Remote Instance" do before(:each) do reset_resources! end describe "wrapped" do before(:each) do @tc = TestGitClass.new end it "should be a string" do @tc.has_git(:at => "/var/www/", :name => "gitrepos.git", :source => "git://source.git").to_string.should =~ /exec/ end it "should included the flushed out options" do @tc.has_git({:name => "git.git", :source => "git://source.git", :user => "finger", :at => "/var/www/"}).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",:at => "/var/www/"}).to_string.should =~ /git clone git:/ end describe "in resource" do before(:each) do @tc.instance_eval do has_git(:name => "gittr") do source "git://source.git" path "/var/www/xnot.org" symlink "/var/www/xnot.org/public" at "/var/www" end end end it "should have the path set within the resource" do @tc.resource(:git).first.to_string.should =~ /exec \{ \"git-gittr/ end end end end
Version data entries
11 entries across 11 versions & 1 rubygems