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
d30b7420
Commit
d30b7420
authored
Sep 07, 2020
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix subscription portal URLs in specs
parent
b1d0a29f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
ee/spec/features/groups/billing_spec.rb
ee/spec/features/groups/billing_spec.rb
+1
-1
ee/spec/features/subscriptions/groups/edit_spec.rb
ee/spec/features/subscriptions/groups/edit_spec.rb
+1
-1
ee/spec/helpers/billing_plans_helper_spec.rb
ee/spec/helpers/billing_plans_helper_spec.rb
+1
-1
ee/spec/services/fetch_subscription_plans_service_spec.rb
ee/spec/services/fetch_subscription_plans_service_spec.rb
+1
-1
No files found.
ee/spec/features/groups/billing_spec.rb
View file @
d30b7420
...
...
@@ -18,7 +18,7 @@ RSpec.describe 'Groups > Billing', :js do
end
before
do
stub_full_request
(
"
https://customers.gitlab.com
/gitlab_plans?plan=
#{
plan
}
"
)
stub_full_request
(
"
#{
EE
::
SUBSCRIPTIONS_URL
}
/gitlab_plans?plan=
#{
plan
}
"
)
.
to_return
(
status:
200
,
body:
File
.
new
(
Rails
.
root
.
join
(
'ee/spec/fixtures/gitlab_com_plans.json'
)))
allow
(
Gitlab
).
to
receive
(
:com?
).
and_return
(
true
)
...
...
ee/spec/features/subscriptions/groups/edit_spec.rb
View file @
d30b7420
...
...
@@ -12,7 +12,7 @@ RSpec.describe 'Welcome screen', :js do
before
do
group
.
add_owner
(
user
)
gitlab_sign_in
(
user
)
stub_request
(
:get
,
'https://customers.gitlab.com/gitlab_plans?plan=free'
)
stub_request
(
:get
,
"
#{
EE
::
SUBSCRIPTIONS_URL
}
/gitlab_plans?plan=free"
)
.
to_return
(
status:
200
,
body:
'{}'
,
headers:
{})
visit
edit_subscriptions_group_path
(
group
.
path
,
params
)
...
...
ee/spec/helpers/billing_plans_helper_spec.rb
View file @
d30b7420
...
...
@@ -4,7 +4,7 @@ require 'spec_helper'
RSpec
.
describe
BillingPlansHelper
do
describe
'#subscription_plan_data_attributes'
do
let
(
:customer_portal_url
)
{
"
https://customers.gitlab.com
/subscriptions"
}
let
(
:customer_portal_url
)
{
"
#{
EE
::
SUBSCRIPTIONS_URL
}
/subscriptions"
}
let
(
:group
)
{
build
(
:group
)
}
let
(
:plan
)
do
...
...
ee/spec/services/fetch_subscription_plans_service_spec.rb
View file @
d30b7420
...
...
@@ -4,7 +4,7 @@ require 'spec_helper'
RSpec
.
describe
FetchSubscriptionPlansService
do
describe
'#execute'
do
let
(
:endpoint_url
)
{
'https://customers.gitlab.com/gitlab_plans'
}
let
(
:endpoint_url
)
{
"
#{
EE
::
SUBSCRIPTIONS_URL
}
/gitlab_plans"
}
subject
{
described_class
.
new
(
plan:
'bronze'
).
execute
}
...
...
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