Skip to content

Commit

Permalink
Preserve symbol into exception message to help users more
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jan 9, 2025
1 parent eeb2e87 commit b461834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/oaken/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/dummy/test/models/oaken_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b461834

Please sign in to comment.