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:
parent
090ae99bf3
commit
4c9dfa7616
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue