Permalink
Browse files

spec the branch reassociating

  • Loading branch information...
1 parent 15635e7 commit 32b7d3d5f198a3ba81a5bba3a94ad04b69d9c1bf Rich Cavanaugh committed Oct 18, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/branch_spec.rb
View
@@ -18,6 +18,18 @@ class Project
@project.should == @project.branch.branch_source
end
+ it "should always tie the branch to the correct version" do
+ b = @project.branch!
+ @project.revise!
+ prev = @project.find_revision(:last)
+ b.reload.branch_source.should == prev
+ end
+
+ it "should have branches" do
+ b = @project.branch!
+ @project.branches.size.should == 1
+ end
+
it "should branch without saving" do
@project.branch.should be_new_record
end

0 comments on commit 32b7d3d

Please sign in to comment.