diff options
author | Peter Wilmott <p@p8952.info> | 2015-06-24 19:17:00 +0100 |
---|---|---|
committer | Peter Wilmott <p@p8952.info> | 2015-06-24 19:17:00 +0100 |
commit | d2ed9e557186d985567df42acf28fdad9516a30c (patch) | |
tree | b6060b531d245b6e689552701d44d261f306b38c /web | |
parent | Add seed data for running tests in dev environment (diff) | |
download | ruby-tinderbox-d2ed9e557186d985567df42acf28fdad9516a30c.tar.gz ruby-tinderbox-d2ed9e557186d985567df42acf28fdad9516a30c.tar.bz2 ruby-tinderbox-d2ed9e557186d985567df42acf28fdad9516a30c.zip |
Support ruby 1.9 where 'lines' returns an Enumerator
Diffstat (limited to 'web')
-rw-r--r-- | web/test/minitest_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/test/minitest_helper.rb b/web/test/minitest_helper.rb index d9065b3..8618052 100644 --- a/web/test/minitest_helper.rb +++ b/web/test/minitest_helper.rb @@ -4,7 +4,7 @@ require 'rack/test' require_relative '../app' clear_packages -package = File.read('test/test-logs/1/package').lines.each(&:strip!) +package = File.read('test/test-logs/1/package').lines.to_a.each(&:strip!) Package.create( sha1: package[0], category: package[1], |