Skip to content

Commit

Permalink
Handle nil filenames for stubs, in addition to blank ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
freerobby authored and idris committed Dec 15, 2010
1 parent e2cff3e commit 9967f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Expand Up @@ -15,7 +15,7 @@ class Test::Unit::TestCase
end

def fixture_file(filename)
return '' if filename == ''
return '' if filename.blank?
file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename)
File.read(file_path)
end
Expand Down

0 comments on commit 9967f02

Please sign in to comment.