test/test_commit.rb in mercurial-ruby-0.6.1 vs test/test_commit.rb in mercurial-ruby-0.7.0
- old
+ new
@@ -13,16 +13,12 @@
it "should parse date to Ruby format" do
@commit.date.must_be_kind_of Time
end
- it "should represent branches as Array" do
- @commit.branches_names.must_be_kind_of Array
- end
-
- it "branches array should be empty if there are no branches" do
+ it "branch name should be 'default' by default" do
@commit = @repository.commits.by_hash_id('4474d1ddaf65')
- @commit.branches_names.must_equal []
+ @commit.branch_name.must_equal 'default'
end
it "should represent tags as Array" do
@commit.tags_names.must_be_kind_of Array
end