From 062d54714838ff692e1a2982e6685ab2a4c19a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= Date: Wed, 22 Jan 2014 07:39:48 +0100 Subject: [PATCH] Make tests Ruby 1.8 compatible. --- test/test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test.rb b/test/test.rb index a154adc..79882ba 100644 --- a/test/test.rb +++ b/test/test.rb @@ -115,7 +115,9 @@ class InfoTest < StrategyTestCase @options = { :image_size => { :width => 123, :height => 987 } } raw_info = { 'name' => 'Fred Smith', 'id' => '321' } strategy.stubs(:raw_info).returns(raw_info) - assert_equal 'http://graph.facebook.com/321/picture?width=123&height=987', strategy.info['image'] + assert_match 'width=123', strategy.info['image'] + assert_match 'height=987', strategy.info['image'] + assert_match 'http://graph.facebook.com/321/picture?', strategy.info['image'] end end