Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
304c39b6
Commit
304c39b6
authored
Dec 22, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop offenses in `StringPath` specs
parent
1cc26e0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
spec/lib/gitlab/string_path_spec.rb
spec/lib/gitlab/string_path_spec.rb
+19
-11
No files found.
spec/lib/gitlab/string_path_spec.rb
View file @
304c39b6
...
...
@@ -72,19 +72,23 @@ describe Gitlab::StringPath do
it
{
is_expected
.
to
be_an_instance_of
Array
}
it
{
is_expected
.
to
all
(
be_an_instance_of
described_class
)
}
it
{
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/file_1'
),
it
do
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/file_1'
),
string_path
(
'path/dir_1/file_b'
),
string_path
(
'path/dir_1/subdir/'
),
string_path
(
'path/dir_1/subdir/subfile'
)
}
string_path
(
'path/dir_1/subdir/subfile'
)
end
end
describe
'#children'
do
subject
{
|
example
|
path
(
example
).
children
}
it
{
is_expected
.
to
all
(
be_an_instance_of
described_class
)
}
it
{
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/file_1'
),
it
do
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/file_1'
),
string_path
(
'path/dir_1/file_b'
),
string_path
(
'path/dir_1/subdir/'
)
}
string_path
(
'path/dir_1/subdir/'
)
end
end
describe
'#files'
do
...
...
@@ -92,8 +96,10 @@ describe Gitlab::StringPath do
it
{
is_expected
.
to
all
(
be_file
)
}
it
{
is_expected
.
to
all
(
be_an_instance_of
described_class
)
}
it
{
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/file_1'
),
string_path
(
'path/dir_1/file_b'
)
}
it
do
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/file_1'
),
string_path
(
'path/dir_1/file_b'
)
end
end
describe
'#directories'
do
...
...
@@ -109,8 +115,10 @@ describe Gitlab::StringPath do
it
{
is_expected
.
to
all
(
be_directory
)
}
it
{
is_expected
.
to
all
(
be_an_instance_of
described_class
)
}
it
{
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/subdir/'
),
string_path
(
'path/dir_1/../'
)
}
it
do
is_expected
.
to
contain_exactly
string_path
(
'path/dir_1/subdir/'
),
string_path
(
'path/dir_1/../'
)
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