spec/models/tr8n/gender_rule_spec.rb in tr8n-3.2.0 vs spec/models/tr8n/gender_rule_spec.rb in tr8n-3.2.1

- old
+ new

@@ -49,12 +49,12 @@ it 'should return the form based on the token value' do male = mock("male") male.stub!(:gender).and_return("male") female = mock("male") female.stub!(:gender).and_return("female") - unknwon = mock("unknwon") - unknwon.stub!(:gender).and_return("unknwon") + unknown = mock("unknown") + unknown.stub!(:gender).and_return("unknown") Tr8n::GenderRule.transform(male, "registered on").should eq("registered on") Tr8n::GenderRule.transform(male, "he", "she").should eq("he") Tr8n::GenderRule.transform(male, "his", "her").should eq("his") Tr8n::GenderRule.transform(male, "he", "she", "he/she").should eq("he") @@ -62,13 +62,13 @@ Tr8n::GenderRule.transform(female, "registered on").should eq("registered on") Tr8n::GenderRule.transform(female, "he", "she").should eq("she") Tr8n::GenderRule.transform(female, "his", "her").should eq("her") Tr8n::GenderRule.transform(female, "he", "she", "he/she").should eq("she") - Tr8n::GenderRule.transform(unknwon, "registered on").should eq("registered on") - Tr8n::GenderRule.transform(unknwon, "he", "she").should eq("he/she") - Tr8n::GenderRule.transform(unknwon, "his", "her").should eq("his/her") - Tr8n::GenderRule.transform(unknwon, "he", "she", "he/she").should eq("he/she") + Tr8n::GenderRule.transform(unknown, "registered on").should eq("registered on") + Tr8n::GenderRule.transform(unknown, "he", "she").should eq("he/she") + Tr8n::GenderRule.transform(unknown, "his", "her").should eq("his/her") + Tr8n::GenderRule.transform(unknown, "he", "she", "he/she").should eq("he/she") end end end describe 'instance methods' do