Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
58e2c680
Commit
58e2c680
authored
Jun 14, 2013
by
Edward Holets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switched log_error output stream to STDERR.
parent
9cdc06e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lib/tasks/paperclip.rake
+1
-1
test/rake_test.rb
+7
-1
No files found.
lib/tasks/paperclip.rake
View file @
58e2c680
...
...
@@ -18,7 +18,7 @@ module Paperclip
end
def
self
.
log_error
(
error
)
puts
error
$stderr
.
puts
error
end
end
end
...
...
test/rake_test.rb
View file @
58e2c680
...
...
@@ -53,7 +53,6 @@ class RakeTest < Test::Unit::TestCase
end
::
Rake
::
Task
[
'paperclip:refresh:thumbnails'
].
execute
end
end
context
"when there is an error in reprocess!"
do
...
...
@@ -91,7 +90,14 @@ class RakeTest < Test::Unit::TestCase
end
::
Rake
::
Task
[
'paperclip:refresh:thumbnails'
].
execute
end
end
end
context
"Paperclip::Task.log_error method"
do
should
"print its argument to STDERR"
do
msg
=
'Some Message'
$stderr
.
expects
(
:puts
).
with
(
msg
)
Paperclip
::
Task
.
log_error
(
msg
)
end
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