From 57d1382013c85a7b11ac8ce5e683f6006b12b328 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 14 Jan 2010 22:21:43 +0100 Subject: Updated globalize2 to latest version. Modified existing code accoringly --- vendor/plugins/globalize2/test/translation_test.rb | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 vendor/plugins/globalize2/test/translation_test.rb (limited to 'vendor/plugins/globalize2/test/translation_test.rb') diff --git a/vendor/plugins/globalize2/test/translation_test.rb b/vendor/plugins/globalize2/test/translation_test.rb deleted file mode 100644 index 4b52bb10..00000000 --- a/vendor/plugins/globalize2/test/translation_test.rb +++ /dev/null @@ -1,54 +0,0 @@ -require File.join( File.dirname(__FILE__), 'test_helper' ) -require 'globalize/translation' - -class TranslationTest < ActiveSupport::TestCase - include Globalize - - def setup - @translation = Translation::Static.new 'foo', :locale => :'en-US' - end - - test "responds to fallback?" do - assert @translation.respond_to?( :fallback? ) - end - - test "returns true when :locale and :requested_locale are not equal" do - @translation.requested_locale = :'de-DE' - assert @translation.fallback? - end - - test "returns false when :locale and :requested_locale are equal" do - @translation.requested_locale = :'en-US' - assert !@translation.fallback? - end - - test "has the attribute :locale" do - assert @translation.respond_to?( :locale ) - end - - test "has the attribute :requested_locale" do - assert @translation.respond_to?( :requested_locale ) - end - - test "has the attribute :options" do - assert @translation.respond_to?( :options ) - end - - test "has the attribute :plural_key" do - assert @translation.respond_to?( :plural_key ) - end - - test "has the attribute :original" do - assert @translation.respond_to?( :original ) - end - - test "Translation::Attribute has the attribute :locale" do - translation = Translation::Attribute.new 'foo' - assert translation.respond_to?( :locale ) - end - - test "Translation::Attribute has the attribute :requested_locale" do - translation = Translation::Attribute.new 'foo' - assert translation.respond_to?( :requested_locale ) - end -end -- cgit v1.3