summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2012-10-18 23:31:29 -0700
committerAaron Stone <aaron@serendipity.cx>2012-10-18 23:31:29 -0700
commit5402f4f1dd4b315f14afa671e3c2c236ac9f53ce (patch)
tree5ca2384b8d14d76b249ddaea288824e43fa972d0 /spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
parent86594324171caf4dc96453ed3a7b56444e48b6d1 (diff)
Remove excess whitespace.
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo/cvs_spec.rb')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/cvs_spec.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb b/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
index c16c7ea..4c15757 100644
--- a/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
@@ -10,24 +10,24 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do
expects_chdir(File.dirname(resource.value(:path)))
#provider.expects(:cvs).with('update', '-r', resource.value(:revision), '.')
provider.create
- end
+ end
end
-
+
resource_without :revision do
it "should just execute 'cvs checkout' without a revision" do
provider.expects(:cvs).with('-d', resource.value(:source), 'checkout', '-d', File.basename(resource.value(:path)), File.basename(resource.value(:source)))
provider.create
- end
+ end
end
-
+
context "with a compression", :resource => {:compression => '3'} do
it "should just execute 'cvs checkout' without a revision" do
provider.expects(:cvs).with('-d', resource.value(:source), '-z', '3', 'checkout', '-d', File.basename(resource.value(:path)), File.basename(resource.value(:source)))
provider.create
- end
+ end
end
end
-
+
context "when a source is not given" do
it "should execute 'cvs init'" do
provider.expects(:cvs).with('-d', resource.value(:path), 'init')
@@ -50,7 +50,7 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do
provider.exists?
end
end
-
+
resource_without :source do
it "should check for the CVSROOT directory" do
File.expects(:directory?).with(File.join(resource.value(:path), 'CVSROOT'))
@@ -63,7 +63,7 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do
before do
@tag_file = File.join(resource.value(:path), 'CVS', 'Tag')
end
-
+
context "when CVS/Tag exists" do
before do
@tag = 'TAG'
@@ -74,7 +74,7 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do
provider.revision.should == @tag
end
end
-
+
context "when CVS/Tag does not exist" do
before do
File.expects(:exist?).with(@tag_file).returns(false)
@@ -84,12 +84,12 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do
end
end
end
-
+
describe "when setting the revision property" do
before do
@tag = 'SOMETAG'
end
-
+
it "should use 'cvs update -dr'" do
expects_chdir
provider.expects('cvs').with('update', '-dr', @tag, '.')