Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
8d61fb0a
Commit
8d61fb0a
authored
14 years ago
by
ilya
Browse files
Options
Downloads
Patches
Plain Diff
tiny bug in the spec
parent
f5a0f44c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/lib/diaspora/parser_spec.rb
+6
-5
6 additions, 5 deletions
spec/lib/diaspora/parser_spec.rb
with
6 additions
and
5 deletions
spec/lib/diaspora/parser_spec.rb
+
6
−
5
View file @
8d61fb0a
...
...
@@ -15,13 +15,14 @@ describe Diaspora::Parser do
describe
"parsing compliant XML object"
do
it
'should be able to correctly handle comments with person in db'
do
post
=
user
.
post
:status_message
,
:message
=>
"hello"
,
:to
=>
aspect
.
id
comment
=
Factory
.
build
(
:comment
,
:post
=>
post
,
:person
=>
@person
,
:text
=>
"Freedom!"
)
comment
=
Factory
.
build
(
:comment
,
:post
=>
post
,
:person
=>
person
,
:text
=>
"Freedom!"
)
comment
.
delete
xml
=
comment
.
to_diaspora_xml
comment
=
Diaspora
::
Parser
.
from_xml
(
xml
)
comment
.
text
.
should
==
"Freedom!"
comment
.
person
.
should
==
@
person
comment
.
post
.
should
==
post
comment
_from_xml
=
Diaspora
::
Parser
.
from_xml
(
xml
)
comment
_from_xml
.
text
.
should
==
"Freedom!"
comment
_from_xml
.
person
.
should
==
person
comment
_from_xml
.
post
.
should
==
post
end
it
'should be able to correctly handle person on a comment with person not in db'
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment