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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
57830201
Commit
57830201
authored
May 21, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec/support files for WebMock and test coverage
parent
2f3ab0ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
spec/spec_helper.rb
spec/spec_helper.rb
+0
-12
spec/support/coverage.rb
spec/support/coverage.rb
+8
-0
spec/support/webmock.rb
spec/support/webmock.rb
+4
-0
No files found.
spec/spec_helper.rb
View file @
57830201
if
ENV
[
'SIMPLECOV'
]
require
'simplecov'
end
if
ENV
[
'COVERALLS'
]
require
'coveralls'
Coveralls
.
wear_merged!
end
ENV
[
"RAILS_ENV"
]
||=
'test'
require
File
.
expand_path
(
"../../config/environment"
,
__FILE__
)
require
'rspec/rails'
require
'webmock/rspec'
require
'email_spec'
require
'sidekiq/testing/inline'
...
...
@@ -18,8 +8,6 @@ require 'sidekiq/testing/inline'
# in spec/support/ and its subdirectories.
Dir
[
Rails
.
root
.
join
(
"spec/support/**/*.rb"
)].
each
{
|
f
|
require
f
}
WebMock
.
disable_net_connect!
(
allow_localhost:
true
)
RSpec
.
configure
do
|
config
|
config
.
use_transactional_fixtures
=
false
config
.
use_instantiated_fixtures
=
false
...
...
spec/support/coverage.rb
0 → 100644
View file @
57830201
if
ENV
[
'SIMPLECOV'
]
require
'simplecov'
end
if
ENV
[
'COVERALLS'
]
require
'coveralls'
Coveralls
.
wear_merged!
end
spec/support/webmock.rb
0 → 100644
View file @
57830201
require
'webmock'
require
'webmock/rspec'
WebMock
.
disable_net_connect!
(
allow_localhost:
true
)
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