@@ -52,7 +52,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
52
52
// Check if master branch has been locked successfully
53
53
flashCookie := session .GetCookie ("macaron_flash" )
54
54
assert .NotNil (t , flashCookie )
55
- assert .EqualValues (t , "success%3DBranch%2Bmaster%2Bprotect%2Boptions%2Bchanged%2Bsuccessfully ." , flashCookie .Value )
55
+ assert .EqualValues (t , "success%3DBranch%2Bprotection%2Bfor%2Bbranch%2B%2527master%2527%2Bhas%2Bbeen%2Bupdated ." , flashCookie .Value )
56
56
57
57
// Request editor page
58
58
req = NewRequest (t , "GET" , "/user2/repo1/_new/master/" )
@@ -73,7 +73,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
73
73
74
74
resp = session .MakeRequest (t , req , http .StatusOK )
75
75
// Check body for error message
76
- assert .Contains (t , resp .Body .String (), "Can not commit to protected branch 'master'." )
76
+ assert .Contains (t , resp .Body .String (), "Cannot commit to protected branch 'master'." )
77
77
78
78
// remove the protected branch
79
79
csrf = GetCSRF (t , session , "/user2/repo1/settings/branches" )
@@ -86,7 +86,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
86
86
// Check if master branch has been locked successfully
87
87
flashCookie = session .GetCookie ("macaron_flash" )
88
88
assert .NotNil (t , flashCookie )
89
- assert .EqualValues (t , "success%3DBranch%2Bmaster%2Bprotect%2Boptions%2Bremoved%2Bsuccessfully " , flashCookie .Value )
89
+ assert .EqualValues (t , "success%3DBranch%2Bprotection%2Bfor%2Bbranch%2B%2527master%2527%2Bhas%2Bbeen%2Bdisabled. " , flashCookie .Value )
90
90
91
91
}
92
92
0 commit comments