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
67e56a58
Commit
67e56a58
authored
Aug 04, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lets try 3 different stub variants
parent
64b484a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+5
-2
No files found.
spec/features/promotion_spec.rb
View file @
67e56a58
...
...
@@ -21,7 +21,7 @@ describe 'Promotions', js: true do
describe
'for project features in general on premise'
do
context
'no license installed'
do
before
do
allow
(
License
).
to
receive
(
:current
)
.
and_return
(
nil
)
allow
(
License
).
to
receive
(
:current
)
{
nil
}
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
...
...
@@ -42,7 +42,8 @@ describe 'Promotions', js: true do
describe
'for project features in general for .com'
,
js:
true
do
context
'for .com'
do
before
do
allow
(
Gitlab
).
to
receive
(
:com?
).
and_return
(
true
)
stub_application_setting
(
check_namespace_plan:
true
)
allow
(
Gitlab
).
to
receive
(
:com?
)
{
true
}
end
it
'should have the Upgrade your plan button'
do
...
...
@@ -63,6 +64,8 @@ describe 'Promotions', js: true do
describe
'for service desk'
,
js:
true
do
before
do
let!
(
:license
)
{
nil
}
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
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