Merge pull request #9 from brixen/patch-1
Update spec/support/matchers.rb
This commit is contained in:
commit
66531dc803
|
@ -26,7 +26,7 @@ end
|
|||
|
||||
RSpec::Matchers.define :deliver_result_image_for do |name|
|
||||
match do |response|
|
||||
actual = files.detect do |(name, content)|
|
||||
actual = files.detect do |name, content|
|
||||
response.body.to_s.force_encoding('ascii') == content.to_s.force_encoding('ascii') # TODO ummmmmmmm?
|
||||
end
|
||||
actual = actual && actual[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user