test/facebooker/rails/publisher_test.rb in facebooker-1.0.31 vs test/facebooker/rails/publisher_test.rb in facebooker-1.0.41

- old
+ new

@@ -425,20 +425,24 @@ assert_equal('raw_string',string_image.href) route_image = TestPublisher.new.image('image.png', {:controller => :pokes, :action => :do, :id => 1}) assert_equal('http://apps.facebook.com/mike/pokes/do/1',route_image.href) end + def test_image_holder_equality + assert_equal TestPublisher::ImageHolder.new('image.png', 'raw_string'), TestPublisher::ImageHolder.new('image.png', 'raw_string') + end + def test_image_to_json_puts_src_first string_image = TestPublisher.new.image('image.png', 'raw_string') assert_equal "{\"src\":\"/images/image.png\", \"href\":\"raw_string\"}",string_image.to_json end def test_action_link assert_equal({:text=>"text", :href=>"href"}, TestPublisher.new.action_link("text","href")) end def test_default_url_options Facebooker.expects(:facebook_path_prefix).returns("/mike") - assert_equal({:host=>"apps.facebook.com/mike"},TestPublisher.default_url_options) + assert_equal({:host=>"apps.facebook.com/mike"},TestPublisher.new.default_url_options) end def test_recipients tp=TestPublisher.new tp.recipients "a"