From 7b28ce05cbc0ed8a785343e640a14cc700ef8e8a Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Thu, 11 Oct 2012 21:06:28 +0200 Subject: [PATCH] try fixing rbx --- .travis.yml | 1 + spec/support/matchers.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9c38f8c1..e78ee4b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: ruby rvm: - 1.9.3 + - rbx-19mode before_script: - 'RAILS_ENV=test rake db:create db:schema:load --trace' notifications: diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index bbfb3ba3..91a0731f 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -27,7 +27,7 @@ end RSpec::Matchers.define :deliver_result_image_for do |name| match do |response| actual = files.detect do |(name, content)| - response.body.force_encoding('ascii') == content.force_encoding('ascii') # TODO ummmmmmmm? + response.body.to_s.force_encoding('ascii') == content.to_s.force_encoding('ascii') # TODO ummmmmmmm? end actual = actual && actual[0]