Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
52a8d488881d
Commit
57830201
authored
May 21, 2015
by
Robert Speicher
Browse files
Add spec/support files for WebMock and test coverage
parent
91f4681677f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
spec/spec_helper.rb
View file @
52a8d488
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 @@
# 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 @
52a8d488
if
ENV
[
'SIMPLECOV'
]
require
'simplecov'
end
if
ENV
[
'COVERALLS'
]
require
'coveralls'
Coveralls
.
wear_merged!
end
spec/support/webmock.rb
0 → 100644
View file @
52a8d488
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