require "mireru/widget/thumbnail" class ThumbnailTest < Test::Unit::TestCase include MireruTestUtils def test_image_from_file widget = Mireru::Widget::Thumbnail.__send__(:image_from_file, File.join(fixtures_dir, "nijip.png")) assert_equal(Gtk::Image, widget.class) end def test_label_from_fil widget = Mireru::Widget::Thumbnail.__send__(:label_from_file, __FILE__) assert_equal(Gtk::Label, widget.class) end end