summaryrefslogtreecommitdiffstats
path: root/test/exemplars
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-06-19 03:54:23 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-06-19 03:54:23 +0000
commitcf334cee3189a84ca6fb0554e16ebcd740409a11 (patch)
treeb252826ffaa73337dd628f2290f6d09bd950cbb9 /test/exemplars
parentc56c0f411c577fe17b64fe33875cad5d75e34284 (diff)
downloadredmine-cf334cee3189a84ca6fb0554e16ebcd740409a11.tar.gz
redmine-cf334cee3189a84ca6fb0554e16ebcd740409a11.zip
Refactor: extract test method
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3773 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/exemplars')
-rw-r--r--test/exemplars/attachment_exemplar.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/exemplars/attachment_exemplar.rb b/test/exemplars/attachment_exemplar.rb
index e86c4d32b..8100fe906 100644
--- a/test/exemplars/attachment_exemplar.rb
+++ b/test/exemplars/attachment_exemplar.rb
@@ -12,10 +12,6 @@ class Attachment < ActiveRecord::Base
end
def self.generate_file
- @file = 'a_file.png'
- @file.stubs(:original_filename).returns('a_file.png')
- @file.stubs(:content_type).returns('image/png')
- @file.stubs(:read).returns(false)
- @file
+ @file = mock_file
end
end