Commit 65b77763 by soramugi Committed by Jon Yurek

fix houndci

parent 108fe47e
...@@ -10,11 +10,15 @@ RSpec::Matchers.define :have_column do |column_name| ...@@ -10,11 +10,15 @@ RSpec::Matchers.define :have_column do |column_name|
if RSpec::Version::STRING.to_i >= 3 if RSpec::Version::STRING.to_i >= 3
failure_message do |columns| failure_message do |columns|
"expected to find '#{column_name}', default '#{@default}' in #{columns.map{|column| [column.name, column.default] }}" "expected to find '#{column_name}', " +
"default '#{@default}' " +
"in #{columns.map { |column| [column.name, column.default] }}"
end end
else else
failure_message_for_should do |columns| failure_message_for_should do |columns|
"expected to find '#{column_name}', default '#{@default}' in #{columns.map{|column| [column.name, column.default] }}" "expected to find '#{column_name}', " +
"default '#{@default}' " +
"in #{columns.map { |column| [column.name, column.default] }}"
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment