BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
spec_helper.rb
spec/spec_helper.rb
+0
-12
coverage.rb
spec/support/coverage.rb
+8
-0
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