Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
db3480bd
Commit
db3480bd
authored
May 31, 2011
by
Holger Just
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#436] Fix test relying on trailing whitespace.
parent
a428fa60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
repository_test.rb
test/unit/repository_test.rb
+2
-6
No files found.
test/unit/repository_test.rb
View file @
db3480bd
...
...
@@ -109,17 +109,13 @@ class RepositoryTest < ActiveSupport::TestCase
def
test_for_changeset_comments_strip
repository
=
Repository
::
Mercurial
.
create
(
:project
=>
Project
.
find
(
4
),
:url
=>
'/foo/bar/baz'
)
comment
=
<<-
COMMENT
This is a loooooooooooooooooooooooooooong comment
COMMENT
comment
=
"This is a looooooooooooooong comment"
+
(
" "
*
80
+
"
\n
"
)
*
5
changeset
=
Changeset
.
new
(
:comments
=>
comment
,
:commit_date
=>
Time
.
now
,
:revision
=>
0
,
:scmid
=>
'f39b7922fb3c'
,
:committer
=>
'foo <foo@example.com>'
,
:committed_on
=>
Time
.
now
,
:repository
=>
repository
)
assert
(
changeset
.
save
)
assert_not_equal
(
comment
,
changeset
.
comments
)
assert_equal
(
'This is a looooooooooooooo
ooooooooooooo
ng comment'
,
changeset
.
comments
)
assert_equal
(
'This is a looooooooooooooong comment'
,
changeset
.
comments
)
end
def
test_for_urls_strip
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment