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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
6e747d72
Commit
6e747d72
authored
Mar 30, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move CarrierWave test env config to separate file
parent
7b11da63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
spec/spec_helper.rb
spec/spec_helper.rb
+0
-5
spec/support/carrierwave.rb
spec/support/carrierwave.rb
+7
-0
No files found.
spec/spec_helper.rb
View file @
6e747d72
...
@@ -45,10 +45,6 @@ RSpec.configure do |config|
...
@@ -45,10 +45,6 @@ RSpec.configure do |config|
config
.
before
(
:suite
)
do
config
.
before
(
:suite
)
do
TestEnv
.
init
TestEnv
.
init
end
end
config
.
after
(
:suite
)
do
FileUtils
.
rm_rf
(
'tmp/tests/files'
)
end
end
end
FactoryGirl
::
SyntaxRunner
.
class_eval
do
FactoryGirl
::
SyntaxRunner
.
class_eval
do
...
@@ -62,4 +58,3 @@ RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do
...
@@ -62,4 +58,3 @@ RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do
end
end
ActiveRecord
::
Migration
.
maintain_test_schema!
ActiveRecord
::
Migration
.
maintain_test_schema!
CarrierWave
.
root
=
'tmp/tests/files'
spec/support/carrierwave.rb
0 → 100644
View file @
6e747d72
CarrierWave
.
root
=
'tmp/tests/uploads'
RSpec
.
configure
do
|
config
|
config
.
after
(
:suite
)
do
FileUtils
.
rm_rf
(
'tmp/tests/uploads'
)
end
end
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