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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
bde0a2c1
Commit
bde0a2c1
authored
Jan 10, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change set to let_it_be in ee/spec/helpers
Contributes to
https://gitlab.com/gitlab-org/gitlab/issues/27922
parent
4ebe48cd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
ee/spec/helpers/ee/gitlab_routing_helper_spec.rb
ee/spec/helpers/ee/gitlab_routing_helper_spec.rb
+3
-3
ee/spec/helpers/ee/services_helper_spec.rb
ee/spec/helpers/ee/services_helper_spec.rb
+1
-1
ee/spec/helpers/ee/todos_helper_spec.rb
ee/spec/helpers/ee/todos_helper_spec.rb
+6
-6
ee/spec/helpers/ee/user_callouts_helper_spec.rb
ee/spec/helpers/ee/user_callouts_helper_spec.rb
+5
-5
ee/spec/helpers/feature_flags_helper_spec.rb
ee/spec/helpers/feature_flags_helper_spec.rb
+1
-1
No files found.
ee/spec/helpers/ee/gitlab_routing_helper_spec.rb
View file @
bde0a2c1
...
...
@@ -6,9 +6,9 @@ describe EE::GitlabRoutingHelper do
include
ProjectsHelper
include
ApplicationSettingsHelper
set
(
:primary
)
{
create
(
:geo_node
,
:primary
,
url:
'http://localhost:123/relative'
,
clone_url_prefix:
'git@localhost:'
)
}
set
(
:group
)
{
create
(
:group
,
path:
'foo'
)
}
set
(
:project
)
{
create
(
:project
,
namespace:
group
,
path:
'bar'
)
}
let_it_be
(
:primary
,
reload:
true
)
{
create
(
:geo_node
,
:primary
,
url:
'http://localhost:123/relative'
,
clone_url_prefix:
'git@localhost:'
)
}
let_it_be
(
:group
,
reload:
true
)
{
create
(
:group
,
path:
'foo'
)
}
let_it_be
(
:project
,
reload:
true
)
{
create
(
:project
,
namespace:
group
,
path:
'bar'
)
}
describe
'#geo_primary_web_url'
do
before
do
...
...
ee/spec/helpers/ee/services_helper_spec.rb
View file @
bde0a2c1
...
...
@@ -13,7 +13,7 @@ describe EE::ServicesHelper do
end
end
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
subject
{
controller_class
.
new
}
...
...
ee/spec/helpers/ee/todos_helper_spec.rb
View file @
bde0a2c1
...
...
@@ -3,16 +3,16 @@
require
'spec_helper'
describe
::
TodosHelper
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:author
)
{
create
(
:user
)
}
set
(
:issue
)
{
create
(
:issue
)
}
set
(
:design
)
{
create
(
:design
,
issue:
issue
)
}
set
(
:note
)
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:author
)
{
create
(
:user
)
}
let_it_be
(
:issue
)
{
create
(
:issue
)
}
let_it_be
(
:design
)
{
create
(
:design
,
issue:
issue
)
}
let_it_be
(
:note
)
do
create
(
:note
,
project:
issue
.
project
,
note:
"I am note, hear me roar"
)
end
set
(
:design_todo
)
do
let_it_be
(
:design_todo
)
do
create
(
:todo
,
:mentioned
,
user:
user
,
project:
issue
.
project
,
...
...
ee/spec/helpers/ee/user_callouts_helper_spec.rb
View file @
bde0a2c1
...
...
@@ -173,8 +173,8 @@ describe EE::UserCalloutsHelper do
describe
'#render_dashboard_gold_trial'
do
using
RSpec
::
Parameterized
::
TableSyntax
set
(
:namespace
)
{
create
(
:namespace
)
}
set
(
:gold_plan
)
{
create
(
:gold_plan
)
}
let_it_be
(
:namespace
)
{
create
(
:namespace
)
}
let_it_be
(
:gold_plan
)
{
create
(
:gold_plan
)
}
let
(
:user
)
{
namespace
.
owner
}
where
(
:has_some_namespaces_with_no_trials?
,
:show_gold_trial?
,
:user_default_dashboard?
,
:has_no_trial_or_gold_plan?
,
:should_render?
)
do
...
...
@@ -220,9 +220,9 @@ describe EE::UserCalloutsHelper do
using
RSpec
::
Parameterized
::
TableSyntax
let
(
:namespace
)
{
create
(
:namespace
)
}
set
(
:free_plan
)
{
create
(
:free_plan
)
}
set
(
:silver_plan
)
{
create
(
:silver_plan
)
}
set
(
:gold_plan
)
{
create
(
:gold_plan
)
}
let_it_be
(
:free_plan
)
{
create
(
:free_plan
)
}
let_it_be
(
:silver_plan
)
{
create
(
:silver_plan
)
}
let_it_be
(
:gold_plan
)
{
create
(
:gold_plan
)
}
let
(
:user
)
{
namespace
.
owner
}
let
(
:gitlab_subscription
)
{
create
(
:gitlab_subscription
,
namespace:
namespace
)
}
...
...
ee/spec/helpers/feature_flags_helper_spec.rb
View file @
bde0a2c1
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
describe
FeatureFlagsHelper
do
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
context
'#unleash_api_url'
do
subject
{
helper
.
unleash_api_url
(
project
)
}
...
...
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