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
f709f768
Commit
f709f768
authored
May 07, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure test license is setup in all tests.
parent
359c039b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
features/support/env.rb
features/support/env.rb
+2
-0
spec/spec_helper.rb
spec/spec_helper.rb
+4
-0
spec/support/license.rb
spec/support/license.rb
+2
-2
No files found.
features/support/env.rb
View file @
f709f768
...
...
@@ -26,7 +26,9 @@ WebMock.allow_net_connect!
Spinach
.
hooks
.
before_run
do
include
RSpec
::
Mocks
::
ExampleMethods
TestEnv
.
init
(
mailer:
false
)
TestLicense
.
init
include
FactoryGirl
::
Syntax
::
Methods
end
spec/spec_helper.rb
View file @
f709f768
...
...
@@ -37,6 +37,10 @@ RSpec.configure do |config|
config
.
before
(
:suite
)
do
TestEnv
.
init
end
config
.
before
(
:all
)
do
TestLicense
.
init
end
end
ActiveRecord
::
Migration
.
maintain_test_schema!
spec/support/license.rb
View file @
f709f768
RSpec
.
configure
do
|
config
|
config
.
before
(
:all
)
do
class
TestLicense
def
self
.
init
Gitlab
::
License
.
encryption_key
=
OpenSSL
::
PKey
::
RSA
.
generate
(
2048
)
FactoryGirl
.
create
(
:license
)
...
...
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