1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Fix another warning

This commit is contained in:
Elliot Winkler 2014-10-21 22:38:56 -06:00
parent 090ae99bf3
commit 4c9dfa7616

View file

@ -49,11 +49,11 @@ module UnitTests
table_name = class_name.tableize.gsub('/', '_')
table_block = lambda do |table|
columns.each do |name, specification|
columns.each do |column_name, specification|
if specification.is_a?(Hash)
table.column name, specification[:type], specification[:options]
table.column column_name, specification[:type], specification[:options]
else
table.column name, specification
table.column column_name, specification
end
end
end