Sha256: 010d2c3e97f6735ac996ad1b558292955fc8491277b6f0c0d3df305166b7aed2
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'og', 'CONFIG.rb') require 'test/unit' require 'nitro/cgi/request' require 'og' require 'glue/webfile' class TC_Webfile < Test::Unit::TestCase # :nodoc: all class Image def self.webfile_path request, name File.join(Uploads.public_root, request.user.name, 'icon.png') end attr_accessor :file, WebFile, :magick => { :small => '64x64', :medium => '96x96' } def initialize(file) @file = file end end class NonImage attr_accessor :file, WebFile end $og1.manage_classes(Image, NonImage) def test_all im = Image.new('me') noim = NonImage.new assert_equal 'me', im.file assert noim end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
og-0.41.0 | test/glue/tc_webfile.rb |
og-0.40.0 | test/glue/tc_webfile.rb |