Skip to content

Commit 9cf8935

Browse files
committed
Merge pull request #149 from 13k/fix-42
Fix #42 for rake tasks
2 parents e4ef7e7 + 8623e98 commit 9cf8935

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rails_erd/tasks.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace :erd do
88
RailsERD.options[option.to_sym] = case ENV[option]
99
when "true", "yes" then true
1010
when "false", "no" then false
11-
when /,/ then ENV[option].split(/\s*,\s*/).map(&:to_sym)
11+
when /,/ then ENV[option].split(/\s*,\s*/)
1212
else ENV[option].to_sym
1313
end
1414
end

test/unit/rake_task_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ def teardown
160160
test "options task should set known array command line options" do
161161
ENV["attributes"] = "content,timestamps"
162162
Rake::Task["erd:options"].execute
163-
assert_equal [:content, :timestamps], RailsERD.options.attributes
163+
assert_equal %w[content timestamps], RailsERD.options.attributes
164164
end
165165
end

0 commit comments

Comments
 (0)