OSDN Git Service

ActiveLdap 1.2.4
[redminele/redminele.git] / ruby / lib / ruby / gems / 1.8 / gems / fast_gettext-0.5.8 / benchmark / namespace / fast_gettext.rb
diff --git a/ruby/lib/ruby/gems/1.8/gems/fast_gettext-0.5.8/benchmark/namespace/fast_gettext.rb b/ruby/lib/ruby/gems/1.8/gems/fast_gettext-0.5.8/benchmark/namespace/fast_gettext.rb
new file mode 100644 (file)
index 0000000..37b59ef
--- /dev/null
@@ -0,0 +1,15 @@
+#Iconv will not be defined, unless it is found -> normalize test results for users that have Iconv/those who do not have it
+begin;require 'iconv';rescue;LoadError;end
+initial = methods.count + Module.constants.count
+
+#FastGettext
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__),'..','..','lib')
+require 'fast_gettext'
+FastGettext.locale = 'de'
+FastGettext.add_text_domain 'test', :path=>'spec/locale'
+FastGettext.text_domain = 'test'
+include FastGettext::Translation
+raise unless _('car')=='Auto'
+
+puts "FastGettext"
+puts methods.count + Module.constants.count - initial
\ No newline at end of file