Commit 3fbda79f by soramugi Committed by Jon Yurek

Rspec 3 Use `failure_message`

Deprecation Warnings:

```
`failure_message_for_should` is deprecated. Use `failure_message` instead. Called from /Users/mugi/git/paperclip/spec/support/matchers/have_column.rb:11:in `block in <top (required)>'.
```
parent 9ecd52ea
...@@ -8,7 +8,7 @@ RSpec::Matchers.define :have_column do |column_name| ...@@ -8,7 +8,7 @@ RSpec::Matchers.define :have_column do |column_name|
column && column.default.to_s == @default.to_s column && column.default.to_s == @default.to_s
end end
failure_message_for_should 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
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