Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove 2 particularly contrived specs

They were both identical, failing under jruby, trying to access instance variables etc..
  • Loading branch information...
commit 3bed9d3ec81e8d52da3f8e8e88d4b683dad263d5 1 parent af62c27
Christopher Dell authored July 07, 2012

Showing 1 changed file with 1 addition and 21 deletions. Show diff stats Hide diff stats

  1. 22  test/backend/metadata_test.rb
22  test/backend/metadata_test.rb
@@ -16,16 +16,6 @@ def setup
16 16
     assert translation.translation_metadata.is_a?(Hash)
17 17
   end
18 18
 
19  
-  test "translate preserves metadata stored on original Strings" do
20  
-    store_metadata(:foo, :bar, 'bar')
21  
-    assert_equal 'bar', I18n.t(:foo, :name => 'David').translation_metadata[:bar]
22  
-  end
23  
-
24  
-  test "translate preserves metadata stored on original Strings (when interpolated)" do
25  
-    store_metadata(:foo, :bar, 'bar')
26  
-    assert_equal 'bar', I18n.t(:foo, :name => 'David').translation_metadata[:bar]
27  
-  end
28  
-
29 19
   test "translate adds the locale to metadata on Strings" do
30 20
     assert_equal :en, I18n.t(:foo, :name => 'David', :locale => :en).translation_metadata[:locale]
31 21
   end
@@ -33,7 +23,7 @@ def setup
33 23
   test "translate adds the key to metadata on Strings" do
34 24
     assert_equal :foo, I18n.t(:foo, :name => 'David').translation_metadata[:key]
35 25
   end
36  
-#
  26
+
37 27
   test "translate adds the default to metadata on Strings" do
38 28
     assert_equal 'bar', I18n.t(:foo, :default => 'bar', :name => '').translation_metadata[:default]
39 29
   end
@@ -53,15 +43,5 @@ def setup
53 43
   test "metadata works with frozen values" do
54 44
     assert_equal(1, I18n.t(:missing, :count => 1, :default => 'foo'.freeze).translation_metadata[:count])
55 45
   end
56  
-  
57  
-  protected
58  
-  
59  
-    def translations
60  
-      I18n.backend.instance_variable_get(:@translations)
61  
-    end
62  
-
63  
-    def store_metadata(key, name, value)
64  
-      translations[:en][key].translation_metadata[name] = value
65  
-    end
66 46
 end
67 47
 

0 notes on commit 3bed9d3

Please sign in to comment.
Something went wrong with that request. Please try again.