diff --git a/lib/oaken/seeds.rb b/lib/oaken/seeds.rb index 27cf9f1..6ebd0db 100644 --- a/lib/oaken/seeds.rb +++ b/lib/oaken/seeds.rb @@ -63,7 +63,7 @@ class << self # setup { seed "cases/pagination" } # end def seed(*paths) - Oaken::Loader.from(paths.map(&:to_s)).load_onto self + Oaken::Loader.from(paths).load_onto self end # `section` is purely for decorative purposes to carve up `Oaken.prepare` and seed files. diff --git a/test/dummy/test/models/oaken_test.rb b/test/dummy/test/models/oaken_test.rb index 2667008..ee00530 100644 --- a/test/dummy/test/models/oaken_test.rb +++ b/test/dummy/test/models/oaken_test.rb @@ -103,7 +103,7 @@ def self.column_names = [] end assert_raise(Oaken::NoSeedsFoundError) { seed :first_missing, :second_missing }.tap do |error| - assert_match /found no seed files for "first_missing"/, error.message + assert_match /found no seed files for :first_missing/, error.message end end end