Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Noah
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Noah
Commits
bb2563b8
Commit
bb2563b8
authored
Aug 04, 2011
by
John E. Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing an MRI 1.8 incompat in specs
parent
ae0d4092
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
link_spec.rb
spec/link_spec.rb
+6
-7
No files found.
spec/link_spec.rb
View file @
bb2563b8
...
...
@@ -59,15 +59,16 @@ describe "Using the Link Model", :reset_redis => true do
h
[
:updated_at
].
should
==
l
.
updated_at
h
[
:created_at
].
should
==
l
.
created_at
h
[
:hosts
].
has_key?
(
@host
.
name
).
should
==
true
h
[
:hosts
][
@host
.
name
].
keys
.
sort
.
should
==
[
:id
,
:status
,
:tags
,
:services
]
.
sort
h
[
:hosts
][
@host
.
name
].
keys
.
map
{
|
k
|
k
.
to_s
}.
sort
.
should
==
[
:id
,
:status
,
:tags
,
:services
].
map
{
|
k
|
k
.
to_s
}
.
sort
h
[
:services
].
has_key?
(
@service
.
name
).
should
==
true
h
[
:services
][
@service
.
name
][
@host
.
name
].
keys
.
sort
.
should
==
[
:id
,
:status
,
:tags
]
.
sort
h
[
:services
][
@service
.
name
][
@host
.
name
].
keys
.
map
{
|
k
|
k
.
to_s
}.
sort
.
should
==
[
:id
,
:status
,
:tags
].
map
{
|
k
|
k
.
to_s
}
.
sort
h
[
:applications
].
has_key?
(
@application
.
name
).
should
==
true
h
[
:applications
][
@application
.
name
].
keys
.
sort
.
should
==
[
:id
,
:tags
,
:configurations
]
.
sort
h
[
:applications
][
@application
.
name
].
keys
.
map
{
|
k
|
k
.
to_s
}.
sort
.
should
==
[
:id
,
:tags
,
:configurations
].
map
{
|
k
|
k
.
to_s
}
.
sort
h
[
:configurations
].
has_key?
(
@configuration
.
name
).
should
==
true
h
[
:configurations
][
@configuration
.
name
].
keys
.
sort
.
should
==
[
:id
,
:tags
,
:format
,
:body
]
.
sort
h
[
:configurations
][
@configuration
.
name
].
keys
.
map
{
|
k
|
k
.
to_s
}.
sort
.
should
==
[
:id
,
:tags
,
:format
,
:body
].
map
{
|
k
|
k
.
to_s
}
.
sort
h
[
:ephemerals
].
has_key?
(
@ephemeral
.
name
).
should
==
true
h
[
:ephemerals
][
@ephemeral
.
name
].
keys
.
sort
.
should
==
[
:id
,
:tags
,
:path
,
:data
].
sort
h
[
:ephemerals
][
@ephemeral
.
name
].
keys
.
map
{
|
k
|
k
.
to_s
}.
sort
.
should
==
[
:id
,
:tags
,
:path
,
:data
].
map
{
|
k
|
k
.
to_s
}.
sort
end
end
describe
"should not"
do
...
...
@@ -84,5 +85,3 @@ describe "Using the Link Model", :reset_redis => true do
end
end
end
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